ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Recovering the return code from the called build.xml into the calling build.xml
Date Thu, 24 Nov 2005 21:09:15 GMT
Hello Saurabh,
look at using ant-contrib.
http://ant-contrib.sourceforge.net/tasks/tasks/antcallback_task.html
Cheers,
Antoine
> --- Urspr√ľngliche Nachricht ---
> Von: "Bhatia Saurabh \(CHA\)" <saurabh.bhatia@etat.ge.ch>
> An: <user@ant.apache.org>
> Betreff: Recovering the return code from the called build.xml into the
> calling build.xml
> Datum: Thu, 24 Nov 2005 10:49:44 +0100
> 
> Dear Community,
> 
> My calling build.xml makes a call to a target defined in a different
> build.xml and this target does an exec. I do get the return value from
> this exec in the called build.xml but I am looking for a solution for
> recovering this resultproperty="run-test.result" in the calling code so
> that I can invoke other targets in my calling build.xml based on the
> return code I got from the called build.xml. (e.g I would like to send
> an email with success notification if the return code = 0 or a failure
> email notification if the return code is anything but 0).
> 
> Really appreciate your solutions and thanking in advance.
> 
> Saurabh

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


Mime
View raw message