ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Read <kris.r...@gmail.com>
Subject Re: "Return values" with Ant?
Date Wed, 27 Oct 2004 17:45:37 GMT
Use the tasks in the antcontrib project.  They have an antcall task
that returns a property or set of properties.

Another way is to structure your file with the 'depends' attribute.  X
does not execute unless Y executed.


On Wed, 27 Oct 2004 18:23:01 +0200, Marcel Stör <marcel@frightanic.com> wrote:
> Hi
> 
> Scenario:
> Target X in file build.xml
> Target Y in file doit.xml
> 
> In X Y is called through the subant task. How can I let X know about Y's
> results?
> 
> Y executes - among other things - JUnit tests with:
> <junit  failureProperty="test.failed" ....
> 
> and checks for failed tests:
> <fail if="test.failed">Unit tests failed....
> 
> I'd like to know in X that JUnit testing failed. How to achieve that?
> 
> Regards,
> Marcel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

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


Mime
View raw message