I just tried a small java program that only resets the arguments to the screen:
public static void main(String[] args) { for(String s : args) { System.out.println(s); } }
and the following batch file:
java -jar test.jar %1 %2 %3 %4
and I got the following result
-file C:\\trace_small.log -str Storing
For the same command line as you ... the equal sign '=' desapeared. Now, if you dragged a batch file onto this:
java -jar test.jar %*
you get another result (which may be what you expected - not clear)
-file=C:\\trace_small.log -str=Storing
The advantage of this% * syntax is that it is more extensible by accepting any number of arguments.
I hope this helps, but I recommend that you take a look at your code and add debugging instructions to understand where you are βlosingβ part of the input.
gastush
source share