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:[EMAIL PROTECTED] Sent: Monday, April 09, 2001 8:51 PM To: [EMAIL PROTECTED] Subject: Re: [PATCH] Easily invoking ant via Java APIs --- "Linskey, Patrick" <[EMAIL PROTECTED]> 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.
