Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to use Ant at runtime (programatically) without using Runtime?
How to use Ant at runtime (programatically) without using Runtime? [message #268386] Tue, 24 August 2004 08:18 Go to next message
Eclipse UserFriend
Originally posted by: pimenta.inatel.br

Hi.

My plugin has a new menu. This menu creates a build.xml.
Now, when this menu is invoked , its action should call
Ant, after creating the xml file, so that the build.xml will
do what is necessary.

How can I do it? That is, how to call the Ant via java?
Is there any way to use an Ant object?

Thanks?

Rodrigo Pimenta Carvalho.
Re: How to use Ant at runtime (programatically) without using Runtime? [message #268388 is a reply to message #268386] Tue, 24 August 2004 11:01 Go to previous messageGo to next message
Eclipse UserFriend
See ant manual http://ant.apache.org/manual/antexternal.html

regards
Rodrigo Pimenta Carvalho wrote:

> Hi.
>
> My plugin has a new menu. This menu creates a build.xml.
> Now, when this menu is invoked , its action should call
> Ant, after creating the xml file, so that the build.xml will
> do what is necessary.
>
> How can I do it? That is, how to call the Ant via java?
> Is there any way to use an Ant object?
>
> Thanks?
>
> Rodrigo Pimenta Carvalho.
Re: How to use Ant at runtime (programatically) without using Runtime? [message #268479 is a reply to message #268386] Tue, 24 August 2004 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

Rodrigo,

I think what you want to do is use the AntRunner class, and configure it
to use your build file. The stuff in the manual page is if you do not
have a build file.

Search the Eclipse Online Help for AntRunner. There is an example there
too.

Mark.

Rodrigo Pimenta Carvalho wrote:

> Hi.
>
> My plugin has a new menu. This menu creates a build.xml.
> Now, when this menu is invoked , its action should call
> Ant, after creating the xml file, so that the build.xml will
> do what is necessary.
>
> How can I do it? That is, how to call the Ant via java?
> Is there any way to use an Ant object?
>
> Thanks?
>
> Rodrigo Pimenta Carvalho.
>
Re: How to use Ant at runtime (programatically) without using Runtime? [message #268488 is a reply to message #268479] Tue, 24 August 2004 16:37 Go to previous message
Eclipse UserFriend
Originally posted by: pimenta.inatel.br

Thank you Mark!!
It is what I was looking for!
I will try it.

Hugs.
Rodrigo.

Mark Melvin wrote

> Rodrigo,

> I think what you want to do is use the AntRunner class, and configure it
> to use your build file. The stuff in the manual page is if you do not
> have a build file.

> Search the Eclipse Online Help for AntRunner. There is an example there
> too.

> Mark.

> Rodrigo Pimenta Carvalho wrote:

> > Hi.
> >
> > My plugin has a new menu. This menu creates a build.xml.
> > Now, when this menu is invoked , its action should call
> > Ant, after creating the xml file, so that the build.xml will
> > do what is necessary.
> >
> > How can I do it? That is, how to call the Ant via java?
> > Is there any way to use an Ant object?
> >
> > Thanks?
> >
> > Rodrigo Pimenta Carvalho.
> >
Previous Topic:Examples sources?
Next Topic:JUnit Plug-in Test does not find classes
Goto Forum:
  


Current Time: Sun Nov 09 17:47:53 EST 2025

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

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

Back to the top