I resolved my out of memory issue by adding "-Xmx256m" in the shell script 
for ant when it is starting org.apache.tools.ant.Main:
    $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" 
$ANT_OPTS -Xmx256m org.apache.tools.ant.Main "$@"

The clue that there may be multiple copies of Ant on the machine (it gets 
shipped with a lot of packages) was the clue in what you said that really 
helped.  Thanks, Martin.  I hadn't been modifying the Ant shell script that 
was actually running.

As an aside, Prasanna also recommended trying the 
compiler="modern"  attribute in the javac tag.  I tried that and it didn't 
work for me, either.  Although I bet it's supported in the jars mentioned 
below.

I've got a solution that works, so I'm a movin' on.

Thanks for you help!

-brian

At 01:52 PM 8/10/02 -0400, Martin Gainty wrote:

>Brian
>
>you don't have the ant.jar and optional.jar from Ant 1.4.1
>Make sure all other ant.jar and optional.jar are OUT of your classpath
>Reinstall ant1.4.1 (the one that supports fork)
>Redeploy
>Keep us apprised.
>Martin Gainty

Reply via email to