Commit 596438ca by Stepan Kasal Committed by Tom Tromey

Main.java (cniOrJniSeen): New field.

2007-03-26  Stepan Kasal  <skasal@redhat.com>

	* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
	field.
	(getParser): Use new field.

From-SVN: r123240
parent 7cf2045d
2007-03-26 Stepan Kasal <skasal@redhat.com>
* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
field.
(getParser): Use new field.
2007-03-17 Thomas Fitzsimmons <fitzsim@redhat.com>
* resource/com/sun/tools/javac/messages.properties
......@@ -89,6 +89,9 @@ public class Main
// True if we're emitting CNI code.
boolean cni;
// True if we've seen -cni or -jni.
boolean cniOrJniSeen;
// True if output files should always be written.
boolean force;
......@@ -243,8 +246,9 @@ public class Main
{
public void parsed(String arg0) throws OptionException
{
if (cni)
if (cniOrJniSeen && cni)
throw new OptionException("only one of -jni or -cni may be used");
cniOrJniSeen = true;
cni = false;
}
});
......@@ -252,6 +256,9 @@ public class Main
{
public void parsed(String arg0) throws OptionException
{
if (cniOrJniSeen && ! cni)
throw new OptionException("only one of -jni or -cni may be used");
cniOrJniSeen = true;
cni = true;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment