ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: svn commit: r486570 - /ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml
Date Wed, 13 Dec 2006 10:11:03 GMT
AFAIK AntUnit works like JUnit - and that means it runs each target
for its own. Therefore each target has to have the if-clause.

A global <fail unless="jdk16"> would "skip" the test - but with the wrong result ;-)


>-----Urspr√ľngliche Nachricht-----
>Von: Kevin Jackson [] 
>Gesendet: Mittwoch, 13. Dezember 2006 11:07
>An: Ant Developers List
>Betreff: Re: svn commit: r486570 - 
>Hi Peter,
>> You should apply the "if" to the test target and not the all target.
>But I want to skip the entire test if java6 isn't available as 
>none of the targets can be run without java6, or do you mean 
>just in case someone tries to run an individual test?
>To unsubscribe, e-mail: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message