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 2001/07/31 05:32:49 UTC

[Bug 2913] New: - Java task passes incorrect memory parameter if Ant run with 1.2 JVM and jvm attribute points to 1.1 JVM

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2913

*** shadow/2913	Mon Jul 30 20:32:49 2001
--- shadow/2913.tmp.5751	Mon Jul 30 20:32:49 2001
***************
*** 0 ****
--- 1,79 ----
+ +============================================================================+
+ | Java task passes incorrect memory parameter if Ant run with 1.2 JVM and jv |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2913                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: rob.griffin@oz.quest.com                                     |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I have a configuration file with the following java task:
+ 
+ 
+         <java   classname="InstallAnywhere"
+                 fork="yes"
+                 jvm="${installanywhere.home}/jre/bin/jre"
+                 maxmemory="128M">
+             <arg value="-b"/>
+             <arg value="${basedir}/iwatchweb.iap"/>
+             <classpath>
+                 <pathelement location="${installanywhere.home}/jre/lib/rt.jar"/>
+                 <pathelement location="${installanywhere.home}/IAClasses.zip"/>
+                 <pathelement 
+ location="${installanywhere.home}/resource/support.zip"/>
+                 <fileset dir="${installanywhere.home}/resource">
+                     <include name="*.class" />
+                 </fileset>
+             </classpath>
+         </java>
+ 
+ If I run Ant using a 1.2 JVM then Ant assumes that the JVM in the Java task has 
+ the same version and passes the memory parameter in 1.2 format. This causes an 
+ error when the jvm attribute points to a 1.1 JVM, as follows:
+ 
+ CreateInstaller:
+      [java] Forking d:\progra~1\instal~1.0en\jre\bin\jre -Xmx128M -classpath 
+ "D:\Program Files\InstallAnywhere 3.0 Enterprise\jre\lib\rt.jar;D:\Program 
+ Files\InstallAnywhere 3.0 Enterprise\IAClasses.zip;D:\Program 
+ Files\InstallAnywhere 3.0 Enterprise\resource\support.zip;D:\Program 
+ Files\InstallAnywhere 3.0 Enterprise\resource\IAKey.class;D:\Program 
+ Files\InstallAnywhere 3.0 Enterprise\resource\__resourceanchor.class" 
+ InstallAnywhere -b L:\Ant/iwatchweb.iap
+ Execute:Java11CommandLauncher: d:\progra~1\instal~1.0en\jre\bin\jre -Xmx128M 
+ -classpath '"D:\Program Files\InstallAnywhere 3.0 
+ Enterprise\jre\lib\rt.jar;D:\Program Files\InstallAnywhere 3.0 
+ Enterprise\IAClasses.zip;D:\Program Files\InstallAnywhere 3.0 
+ Enterprise\resource\support.zip;D:\Program Files\InstallAnywhere 3.0 
+ Enterprise\resource\IAKey.class;D:\Program Files\InstallAnywhere 3.0 
+ Enterprise\resource\__resourceanchor.class"' InstallAnywhere -b 
+ L:\Ant/iwatchweb.iap
+      [java] Illegal option: -Xmx128M
+      [java] Java(tm) Runtime Loader Version 1.1.8
+      [java] Usage: jre [-options] classname [arguments]
+      [java] Options:
+      [java]     -?, -help         print out this message
+      [java]     -v, -verbose      turn on verbose mode
+      [java]     -verbosegc        print a message when garbage collection occurs
+      [java]     -noasyncgc        disable asynchronous garbage collection
+      [java]     -noclassgc        disable class garbage collection
+      [java]     -ss<number>       set the maximum native stack size for any 
+ thread
+      [java]     -oss<number>      set the maximum Java stack size for any thread
+      [java]     -ms<number>       set the initial Java heap size
+      [java]     -mx<number>       set the maximum Java heap size
+      [java]     -D<name>=<value>  set a system property
+      [java]     -classpath <path> set class path to <path>
+      [java]     -cp <path>        prepend <path> to base class path
+      [java]     -verify           verify all classes when loaded
+      [java]     -verifyremote     verify classes loaded from the network 
+ (default)
+      [java]     -noverify         do not verify any classes
+      [java]     -nojit            disable JIT compiler
+      [java] Java Result: 1