Community
Participate
Working Groups
Support for ANT_OPTS should be provided when we allow to run a script in a separate VM.
marking as later
Reopening for consideration.
My idea for this is to have an "Advanced" button off of the Ant JRE tab that opens you to essentially the Java arguments tab. The "Advanced" is only enabled if you are set to build in a separate VM.
Now that we have support for setting the environment vars for a Java process, we should consider emulating command-line ant when running in a separate VM. We could look for ANT_OPTS and ANT_ARGS and do the "right" thing. I am concerned on the confusion this might create between running in the same VM as Eclipse and in a separate VM. Even when in the same VM as Eclipse we could now make use of ANT_ARGS.
*** Bug 42987 has been marked as a duplicate of this bug. ***
Revisit post 3.0
Please reopen since this request is marked to be revisited after 3.0 (we are near 3.1 at the time of writing). Or update the status of this bug. Our team is now obliged to run Ant from the command line as we get an out of memory error otherwise. Setting an ANT_OPTS would resolve that issue but it is not doable within Eclipse, AFAIK.
Not going to happen for 3.1. In 3.1 and 3.0 you can set the vm args for separate JRE ant builds to give the larger min and max heap
Please add this feature. We have defined the '-lib' option in our ANT_ARGS. It would be great if this could be supported by Eclipse as well.
For those trying to figure out how to set the vm args, here you go (There may be a more straightforward but this is the only way I found to do it). --Done on Eclipse 3.1 Right click on any ant target in the "Ant" view. Go to "Run As"->"External Tools..." Choose the build file you are using. Go to the "JRE" tab and enter the VM args that you want in that tab. e.g. -Xmx256M Click Apply and Close. And there you go.
Our team is in the same situation as Patrick's (see comment #7). This looks like a really trivial to implement and would save a LOT of headache (read: clicking and typing the same thing all over again, as suggested by Darwin in comment #10) for many users. Vote++ :)
Not currently planned. Patches would be reviewed for future releases.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.