On Fri, 20 Dec 2002 08:38:45 -0500, Erik Hatcher <[EMAIL PROTECTED]> wrote:
||| Ant's Main.main calls System.exit, that is why. I got bitten by a System.exit() call a while back (not Ant's main, but another). I was wrapping a local utility in an Ant task and while the task ran and the tool did its job, Ant would just abort with no errors, no messages, nothing. After a little fiddling I discovered it was a call to exit(). Is the reason for Ant's main calling System.exit() simply to return an exit code to the OS? That's what it looks like. A cursory glance at Ant's Main.start() method looks like one could use the additionalUserProperties element to pass a property like "exit=true" or something like that and then Ant could check that before calling System.exit(). Joey -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>