Bug 26491 - Support for ANT_OPTS, ANT_ARGS
Summary: Support for ANT_OPTS, ANT_ARGS
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 42987 (view as bug list)
Depends on: 24129
Blocks:
  Show dependency tree
 
Reported: 2002-11-15 11:25 EST by Darin Wright CLA
Modified: 2009-08-30 02:19 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2002-11-15 11:25:35 EST
Support for ANT_OPTS should be provided when we allow to run a script in a 
separate VM.
Comment 1 Darin Wright CLA 2002-11-15 11:25:52 EST
marking as later
Comment 2 Darin Swanson CLA 2003-05-12 19:11:20 EDT
Reopening for consideration.
Comment 3 Darin Swanson CLA 2003-08-04 18:50:23 EDT
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.
Comment 4 Darin Swanson CLA 2003-09-11 19:10:15 EDT
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.
Comment 5 Darin Swanson CLA 2003-09-11 19:11:17 EDT
*** Bug 42987 has been marked as a duplicate of this bug. ***
Comment 6 Darin Swanson CLA 2004-03-16 14:15:59 EST
Revisit post 3.0
Comment 7 Patrick CLA 2005-06-09 11:16:36 EDT
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.
Comment 8 Darin Swanson CLA 2005-06-09 11:23:48 EDT
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
Comment 9 Maarten Coene CLA 2005-11-09 05:35:02 EST
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.
Comment 10 Darwin CLA 2006-02-03 17:10:44 EST
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.
Comment 11 Max Gilead CLA 2007-04-24 09:43:29 EDT
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++ :)
Comment 12 Darin Swanson CLA 2007-04-24 10:18:21 EDT
Not currently planned. Patches would be reviewed for future releases.
Comment 13 Denis Roy CLA 2009-08-30 02:19:59 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.