You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Henning Bredel <h....@gmx.de> on 2008/06/14 18:23:17 UTC

increase heap size

hi,

I receive a Java Heap space error when
executing the Deploy task from the
catalina-ant.jar.

Referring to Environment Variables at

ant.apache.org/manual/running.html

it is said
"ANT_OPTS - command-line arguments 
  that should be passed to the JVM. For 
  example, you can define system 
  properties or set the maximum Java 
  heap size here."

Is there a possibility to increase the 
Java heap without creating an ~/.antrc
(or %HOME%/antrc_{pre,post}.bat)?

xmlbeans task solves this with its own
attribute 'memoryMaxSize', but I do
not want to rewrite the catalina-ant.jar
only for that issue.

Calling ant via commandline with
appropriate arguments would not
work for me, since the ant script will
be called through an izpack installer [1]

How do you solve such a problem?

Thanks 

  Henning

-- 
[1] http://izpack.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org