ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Twiggs, Glenn" <>
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 :)


-----Original Message-----
From: Simeon Fitch []
Sent: Monday, April 09, 2001 8:51 PM
Subject: Re: [PATCH] Easily invoking ant via Java APIs

--- "Linskey, Patrick" <> 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
> invokes System.exit(), and the Main
> constructor and 'runBuild' methods are protected and private,
> respectively. 


Check out the class for a
"non-invasive" (but still not pretty) approach to doing what you want. 

View raw message