Actually, I plugged into the JDA remote debugger...
Should have just looked at the source code for org.apacje.tools.ant.Main
first. Main calls System.exit(0) for success and Sustem.exit(1) for
failures... bummer.
Can anyone comment on why this is the case? Shouldn't an Exception be
thrown for an error condition and nothing happen for success?
> -----Original Message-----
> From: Jason Rogers [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Build and Confiuration Managment with Ant...
> a.k.a. running
> A nt _ from_ JSP/Servlet
>
>
> Here's a kludgy thought... If you are fairly certain a
> System.exit(int) call
> is being made, try plugging in your own SecurityManager which
> does not allow
> for the call to System.exit(). Then, catch SecurityException
> and see what
> the trouble is.
>
> -Jason
>