ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: How to use nested if in ant script?
Date Tue, 10 Mar 2009 06:39:54 GMT
>>> Use <groovy> ;)
>>
>> That brings me to ask: Does the new (?) <script> tag make ant-contrib
>> obsolete?
>
>It obsoletes any tasks that were trying to model programming language  
>concepts on to XML (eeck). If, foreach, and similar tasks fall into  
>this category.


I dont think that using <script> makes <ac:*> obsolete. Just think about
having 
a bunch of nested tasks. 

<ac:for>
    <available file="flagfile"/>
    <ac:then>
        <echo>then</then>
        <javac ...>
        <copy todir=.."><fileset ..><modified/></fileset></copy>
    </ac:then>
    <ac:else>
        <another-bunch-of-tasks/>
    </ac:else>
</ac:for>


Writing with <script> could be more work ...


Jan     

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


Mime
View raw message