ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
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 ;-)


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Kevin Jackson [mailto:foamdino@gmail.com] 
>Gesendet: Mittwoch, 13. Dezember 2006 11:07
>An: Ant Developers List
>Betreff: Re: svn commit: r486570 - 
>/ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespa
>ce-test.xml
>
>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?
>
>Kev
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For 
>additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Mime
View raw message