Hi All, There are two way to increase memory size for ant:
1. Setting the value of ANT_OPTS property in environment var. eg: ANT_OPTS = -Xmx512M. 2. Specifying maxmeory attribute in in ant Java target. ex. target name="MergingHugeJars" > <echo message="Merging jars ${InputJars} into ${OutputJar}"/> <java jvm="${JVM}" classname="com.krishna.test.MergeHugeJars" fork="true" failonerror="true" maxmemory="512m" > <arg line="${OutputJar} ${InputJars}"/> </java> </target> Here maxmemory is the way to pass the maxmemory to JVM at run time. Thanks & Regards, Krishna zw wrote: > > Hi > > What's the complete command string example to increase memory used by JVM > in > Ant 1.7 ? > What's the min and max memory size for this ? > > Thanks > > -- View this message in context: http://www.nabble.com/How-to-increase-memory-used-by-JVM-in-Ant-tp15499056p24864542.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org