I guess this will be included in 1.6.2 (?)
Matt Benson wrote:
I went ahead and coded it with a subclassed Exception for the sake of simplicity. Rather than use some complicated means of evaluating whether the BuildException has a status code, and what that means, and whether it defaults to zero or one, etc., a separate catch block can resolve all those issues.
-Matt
--- Aurele Venet <[EMAIL PROTECTED]> wrote:
OK, I'll do that.... figured that another way to go_______________________________________________________________________
about this is to add a get and set status method to the BuildException,
with a default value of one.... not really needed to have a new
exception, what do you think?
Peter Reilly wrote:
called inYep, sounds good.
Peter Matt Benson wrote:
Yeah, it looks like Conor had it right. I hadn't
remembered that the System.exit() was still
IMain even though oata.launch.Launcher invokes
Main.start()... Your approach should work, then.
Bugzilla...would say open an enhancement request in
1.5, I-Matt
--- Aurele Venet <[EMAIL PROTECTED]> wrote:
Although I developed this on the back of ant
ExitStatusException, which stored anused an extended BuildException,
to catch the Exitexit status. I then modified ant's Main class
status. I guess thisexception if there is one and exit with the set
class (?).should still work by modifying the new Launcher
BuildException...Matt Benson wrote:
While that's essentially a nice idea, the onlything
<fail> currently does is throw a
outhow
do you propose to pass this status all the way
sureof
the JVM, especially when you really can't be
doesn'twhose main method is the starting point... usu.
oata.launch.Launcher--which incidentally
ableeven
call System.exit() itself... IIRC calling System.exit() would be a de-evolution of Ant...
-Matt
--- Aurele Venet <[EMAIL PROTECTED]> wrote:
Hello,
I have changed the <fail/> task so as to be
returned by ant when and ifto
add an optional error status int value
automatedit exists. Basically it goes like:
<fail message="" unless="prop1" status="1"/>
this allows for easier integration with
for errors orshell scripts that may report various causes
distro?Wouldwarnings.
this be a valuable addition to the main
Vrata
--
_______________________________________________________________________
exists
Quote: The surest sign that intelligent life
triedelsewhere in the
universe is the fact that it has never
to contact us.
Aurele Vrata Venet
ESA/ESAC
European Space Astronomy Center
P.O. Box 50727, 28080 Madrid - SPAIN
Tel: +34 91 81 31 331 Fax: +34 91 81 31 322
Ext: 322
;
---------------------------------------------------------------------
---------------------------------------------------------------------We
__________________________________To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start.
finish.
http://promotions.yahoo.com/new_mail
=== message truncated ===
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
_______________________________________________________________________ Quote: The surest sign that intelligent life exists elsewhere in the universe is the fact that it has never tried to contact us.
Aurele Vrata Venet
ESA/ESAC
European Space Astronomy Center
P.O. Box 50727, 28080 Madrid - SPAIN
Tel: +34 91 81 31 331 Fax: +34 91 81 31 322
Ext: 322 ;
_______________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]