Running ANT in separate VM? [message #74026] |
Tue, 08 July 2003 15:40 |
Eclipse User |
|
|
|
Originally posted by: bob.mccune.ambientconsulting.com
I understand it is possible to run ANT in a separate VM and was hoping
someone could explain how this can be done. Any ideas?
TIA,
Bob
P.S.
I'm running 2.1.1
|
|
|
Re: Running ANT in separate VM? [message #74080 is a reply to message #74026] |
Thu, 10 July 2003 09:54 |
Eclipse User |
|
|
|
Originally posted by: mxlehma.NO-SPAM.qwest.com
Not sure if this is available for Eclipse 2.1.1, but it is available in
3.0 M1. Look for a JRE tab under External Tools->Ant Build->(your ant
config file).
To configure for an external jvm just pick the JRE that you want. I
also changed the Java executable from javaw to java. You may also need
to do the following if you get a xerces error:
For the ant configuration that you are changing the JDK on, go to the
Classpath tab and add the org.apache.xerces_4.0.13/xercesImpl.jar and
xmlParserAPIs.jar files from the eclipse plugins directory.
Bob McCune wrote:
> I understand it is possible to run ANT in a separate VM and was hoping
> someone could explain how this can be done. Any ideas?
>
> TIA,
> Bob
>
> P.S.
> I'm running 2.1.1
>
>
--
Michael Lehmann
mxlehma@NO-SPAM.qwest.com
|
|
|
Re: Running ANT in separate VM? [message #74171 is a reply to message #74026] |
Thu, 10 July 2003 15:04 |
Eclipse User |
|
|
|
Originally posted by: bob.mccune.ambientconsulting.com
There appears to be a memory leak in the Ant integration. Each time I run
my script it increases Eclipse's memory usage by about 5-10 mb. After
running the script approximately a 10-15 times it ends of taking down
Eclipse with an out of memory error. I figured if I can run it in its own
VM space, the VM will start and stop each time and the memory leak shouldn't
be an issue.
"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:bei2tm$eob$1@eclipse.org...
> You can do it in 2.1.1 but it is not easy or well integrated.
>
> Do you have the option of moving to the 3.0 stream?
> In 3.0, there is a JRE tab for the Ant launch configuration which allows
you
> to specify the JVM and the java executable you wish to use.
>
> Out of curiosity, why do you wish to run in a separate VM?
> If you are stuck :-) using 2.1.1 I can provide you the means to run Ant in
a
> separate VM.
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=24129 for all the
details
> on the progress of the integrated support.
>
> Darins
>
> "Bob McCune" <bob.mccune@ambientconsulting.com> wrote in message
> news:beeokp$9jl$1@eclipse.org...
> > I understand it is possible to run ANT in a separate VM and was hoping
> > someone could explain how this can be done. Any ideas?
> >
> > TIA,
> > Bob
> >
> > P.S.
> > I'm running 2.1.1
> >
> >
>
>
|
|
|
|
Re: Running ANT in separate VM? [message #75540 is a reply to message #74026] |
Mon, 14 July 2003 13:09 |
Eclipse User |
|
|
|
Originally posted by: yves.somewhere.com
You could execute the ANT script through a batch file.
Use something like :
"java -cp H:\Development\ECLIPSES\2.1\eclipse\startup.jar
org.eclipse.core.launcher.Main -application
org.eclipse.ant.core.antRunner -buildfile
H:\Development\ECLIPSES\myworkspace\myproject\scripts\antscr ipt.xml
-Declipse-home=H:\Development\ECLIPSES\2.1\eclipse
Bob McCune wrote:
> I understand it is possible to run ANT in a separate VM and was hoping
> someone could explain how this can be done. Any ideas?
>
> TIA,
> Bob
>
> P.S.
> I'm running 2.1.1
>
>
|
|
|
Re: Running ANT in separate VM? [message #79978 is a reply to message #75540] |
Thu, 24 July 2003 23:04 |
Eclipse User |
|
|
|
Originally posted by: noemail.blah.com
I feel like I'm missing something here. How do I use that?
Inside eclispe, I can run an external command (run->java application), is
this where I put this? If so, how? I see "main class:", then arguments, do
I cut up the line below to fit? I tried that and I get nothing (no output
in the window).
I don't see how to replace the command to run for ant, so I figure the above
is what I should do.
What am I doing wrong?
Also, where do I put the target to execute, maybe on the end?
Thanks.
-Jeff
"Yves" <yves@somewhere.com> wrote in message
news:beua1c$qle$1@eclipse.org...
> You could execute the ANT script through a batch file.
> Use something like :
>
> "java -cp H:\Development\ECLIPSES\2.1\eclipse\startup.jar
> org.eclipse.core.launcher.Main -application
> org.eclipse.ant.core.antRunner -buildfile
> H:\Development\ECLIPSES\myworkspace\myproject\scripts\antscr ipt.xml
> -Declipse-home=H:\Development\ECLIPSES\2.1\eclipse
>
> Bob McCune wrote:
> > I understand it is possible to run ANT in a separate VM and was hoping
> > someone could explain how this can be done. Any ideas?
> >
> > TIA,
> > Bob
> >
> > P.S.
> > I'm running 2.1.1
> >
> >
>
|
|
|
Re: Running ANT in separate VM? [message #79992 is a reply to message #75540] |
Thu, 24 July 2003 23:16 |
Eclipse User |
|
|
|
Originally posted by: burner.zclipse.org
On Mon, 14 Jul 2003 15:09:19 +0200, Yves wrote:
> You could execute the ANT script through a batch file.
> Use something like :
>
> "java -cp H:\Development\ECLIPSES\2.1\eclipse\startup.jar
> org.eclipse.core.launcher.Main -application
> org.eclipse.ant.core.antRunner -buildfile
> H:\Development\ECLIPSES\myworkspace\myproject\scripts\antscr ipt.xml
> -Declipse-home=H:\Development\ECLIPSES\2.1\eclipse
>
Actually, in this case, you could probably use the runtime workbench
and specify the org.eclipse.ant.core.antRunner application...
mike
--
http://zclipse.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.03446 seconds