ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: improved <fail/> task
Date Thu, 17 Jun 2004 14:34:13 GMT
Ant's Main class does call System.Exit. I think the only way to get the 
information to it would be to create a subclass of BuildException to
carry the info and have Main extract it from the exception to Exit. You 
should definitely not be calling System.Exit in the task.

Conor


Matt Benson wrote:
> While that's essentially a nice idea, the only thing
> <fail> currently does is throw a BuildException... how
> do you propose to pass this status all the way out of
> the JVM, especially when you really can't be sure
> whose main method is the starting point... usu.
> oata.launch.Launcher--which incidentally doesn't even
> call System.exit() itself... IIRC calling
> System.exit() would be a de-evolution of Ant...
> 
> -Matt
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message