increase heap size

View: New views
1 Messages — Rating Filter:   Alert me  

increase heap size

by Henning Bredel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...