How to change MaxHeap for Ant scripts?

One of my Ant scripts runs on an OutOfMemoryError.

I was trying to increase Ants heap size by providing a JVM setting.

In the settings dialogue for the Ant script there is a comment that I have to use the -J prefix for JVM parameters.

So I tried:

-J -Xmx1024m

but in both cases the Ant script does not run anymore and IDEA only says "Ant script runs successfully in 0 sec".

Is there any magic to get this running?

Thanks in advance!

Comment actions Permalink

Hi Helge,
The right one is "-J-Xmx1024m", notice the absence of space.


Comment actions Permalink

Thanks Eugene!
This worked. You should put this statement into the documentation.


Please sign in to leave a comment.