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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to