ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gutierrez <alan-ant-u...@engrm.com>
Subject Re: how to invoke ant via java
Date Thu, 20 Jan 2005 02:23:52 GMT
* softgnostics k <softgnostics@gmail.com> [2005-01-19 15:01]:
> Hi all,
> 
> I am newbie to ant and have one query. My application has a new
> menu.This menu creates a build.xml Ant file. Now, when this menu is
> invoked, its action should call  Ant build, 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?

    Yes.
    
    Try reading through the source of:

        org.apache.tools.ant.launcher.Launcher

    Cheers.

--
Alan Gutierrez - alan@engrm.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message