You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/02/02 07:09:55 UTC
DO NOT REPLY [Bug 5307] -
java task: JVM mode cannot be changed while using the jar attribute
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5307>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5307
java task: JVM mode cannot be changed while using the jar attribute
------- Additional Comments From umagesh@apache.org 2002-02-02 06:09 -------
I notice a strange comment/piece of code in CommandlineJava.java. This is the
cause of this problem:
// -jar must be the first option in the command line.
if (executeJar){
result[pos++] = "-jar";
}
Who ever said -jar must be the first option in the command line??
This link clearly states the *real* rules...
http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/java.html#-jar
It says java [ options ] -jar file.jar [ argument ... ]
^^^^^^^^^^^
I will wait for a day or two to hear back, before I apply a patch.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>