You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Robert A. Lentz" <ra...@ralentz.com> on 2000/11/17 03:37:22 UTC

running ant from another Java program?

Greetings,

I have checked the FAQ and October mailing list archive (the archive really 
needs search capabilities...) but have not found anything appropriate for 
my question yet.

Can anybody provide information on how to run the ant classes from another 
program?  What is the best entry point?  What do I need to set up?  How are 
messages passed back?

Because of the traffic I have not subscribed, please make sure a copy of 
your reply is sent to me.

Thank you,
-Robert

-- 
ralentz@erols.com
  "It has been said that man is a rational animal. All my life
   I have been searching for evidence which could support this."
                                            -- Bertrand Russell


Re: running ant from another Java program?

Posted by Stefan Bodewig <bo...@apache.org>.
Robert A. Lentz <ra...@ralentz.com> wrote:

> I have checked the FAQ and October mailing list archive (the archive
> really needs search capabilities...) but have not found anything
> appropriate for my question yet.

So you are using the wrong archive 8-). Try the one at
marc.theaimsgroup.com.

> Can anybody provide information on how to run the ant classes from
> another program?  What is the best entry point?  What do I need to
> set up?  How are messages passed back?

Take a look at org.apache.tools.ant.Main and
org.apache.tools.ant.Project. The concerns are not that well separated
between Main and Project, this is something that is going to change
for Ant2. For now Main seems to be the better place to start.

Stefan