ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <Michael.Lud...@delphi-mb.de>
Subject RE: conditions in antlib?
Date Fri, 12 Nov 2010 16:45:05 GMT
> have you given something like
> 
> <antlib>
>   <condition property="svn.type.found">
>       <typefound name="svn"/>
>   </condition>
> </antlib>
> 
> a try? What do you get??

I haven't tried that. I have yet to explore <antlib>.

I was thinking of something like this:

<project>
<condition property="gefunden">
<typefound name="componentdef"/>
</condition>
<fail unless="gefunden" message="kein componentdef :-("/>
<!-- alternativ: -->
<fail message="kein blablub :-(">
<condition><not><typefound name="blablub"/></not></condition>
</fail>
</project>

But I don't know if you can adapt it to your <antlib> purposes.

Michael

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


Mime
View raw message