Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » ant vm
ant vm [message #211698] Fri, 05 August 2005 19:41 Go to next message
Eclipse UserFriend
Originally posted by: brown_j.ociweb.com

When I execute Ant targets via the Ant View, as far as I can tell that uses
the VM that Eclipse itself is running in. Is there a way to change that
aside from using an external tool? That is, I want to run Eclipse in 1.5
and I want to execute Ant targets using 1.4.

Thanks.



jb
Re: ant vm [message #211790 is a reply to message #211698] Mon, 08 August 2005 15:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Jeff Brown wrote:
> When I execute Ant targets via the Ant View, as far as I can tell that uses
> the VM that Eclipse itself is running in. Is there a way to change that
> aside from using an external tool? That is, I want to run Eclipse in 1.5
> and I want to execute Ant targets using 1.4.

When you launch an Ant build, Eclipse creates a Launch Configuration for
it. You can edit these Launch Configurations via the External Tools
toolbar. When editing a Launch, see the JRE tab for selecting which JVM
to use.

HTH,
Eric
Re: ant vm [message #211848 is a reply to message #211790] Mon, 08 August 2005 20:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brown_j.ociweb.com

Eric Rizzo wrote:

> Jeff Brown wrote:
>> When I execute Ant targets via the Ant View, as far as I can tell that
>> uses
>> the VM that Eclipse itself is running in. Is there a way to change that
>> aside from using an external tool? That is, I want to run Eclipse in 1.5
>> and I want to execute Ant targets using 1.4.
>
> When you launch an Ant build, Eclipse creates a Launch Configuration for
> it. You can edit these Launch Configurations via the External Tools
> toolbar. When editing a Launch, see the JRE tab for selecting which JVM
> to use.
>
> HTH,
> Eric

I am aware of the external tool configuration and how that allows me to
select a JVM. In particular I want to know if there is a way to tell
Eclipse "when I double click a target in the Ant View, use _XYZ_ JVM" where
I get to fill in the blank to indicate which JVM I want to use.



jb
Re: ant vm [message #211894 is a reply to message #211848] Tue, 09 August 2005 14:44 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Jeff Brown wrote:
> Eric Rizzo wrote:
>>Jeff Brown wrote:
>>
>>>When I execute Ant targets via the Ant View, as far as I can tell that
>>>uses
>>>the VM that Eclipse itself is running in. Is there a way to change that
>>>aside from using an external tool? That is, I want to run Eclipse in 1.5
>>>and I want to execute Ant targets using 1.4.
>>
>>When you launch an Ant build, Eclipse creates a Launch Configuration for
>>it. You can edit these Launch Configurations via the External Tools
>>toolbar. When editing a Launch, see the JRE tab for selecting which JVM
>>to use.
>>
>>HTH,
>>Eric
>
>
> I am aware of the external tool configuration and how that allows me to
> select a JVM. In particular I want to know if there is a way to tell
> Eclipse "when I double click a target in the Ant View, use _XYZ_ JVM" where
> I get to fill in the blank to indicate which JVM I want to use.

If you double-click a target that is in an Ant file that already has an
associated Launch configuration, Eclipse will use that Launch Config. So
set it up once to use the JRE you want and viola.

If you launch a build from Ant view on a build file that has not been
launched before, I'm pretty sure Eclipse will use the JRE that the
containing Project is configured to use.

HTH,
Eric
Previous Topic:Javadoc internal links fail
Next Topic:Spell checking service
Goto Forum:
  


Current Time: Fri Sep 27 07:32:28 GMT 2024

Powered by FUDForum. Page generated in 0.02749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top