ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twiggs, Glenn" <Glenn_Twi...@bmc.com>
Subject RE: [PATCH] Easily invoking ant via Java APIs
Date Fri, 27 Apr 2001 21:53:01 GMT
I could take advantage of Patrick's patch. Why not apply the patch and avoid
the "ugly" solution? Is there a reason for making the constructor and
runBuild method of Main private? Please enlighten me :)

Glenn.

-----Original Message-----
From: Simeon Fitch [mailto:metasim@yahoo.com]
Sent: Monday, April 09, 2001 8:51 PM
To: ant-dev@jakarta.apache.org
Subject: Re: [PATCH] Easily invoking ant via Java APIs



--- "Linskey, Patrick" <plinskey@techtrader.com> wrote:
> Hello,
> 
> I'm integrating ant into an IDE as the primary compilation tool, and
> was hoping to be able to trivially invoke ant as if it were invoked
> from a shell prompt. Unfortunately, the 'main' method in
> org.apache.tools.ant.Main invokes System.exit(), and the Main
> constructor and 'runBuild' methods are protected and private,
> respectively. 

<snip>

Check out the class org.apache.tools.ant.gui.core.ProjectManager for a
"non-invasive" (but still not pretty) approach to doing what you want. 

Mime
View raw message