ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Yay! got uptodate to work, thanks all
Date Fri, 04 Mar 2005 17:18:12 GMT
Hmmm, can you explain this one Peter?

<ac:outofdate> exposes an iterator() method that returns the list of
out-of-date files, is that it? I didn't know that.

How do you document this kind of unusual synergy between tasks? --DD

> -----Original Message-----
> From: Peter Reilly [mailto:peterreilly@apache.org]
> 
> You may be able to use ant-contrib <outofdate> as a collection to the
> <for> task:
> 
>     <ac:for param="xmlfile" xmlns:ac="antlib:net.sf.antcontrib">
>       <ac:outofdate>
>         <sourcefiles>
>           <fileset dir="${basedir}/xdocs" includes="**/*.xml"/>
>         </sourcefiles>
>         <mapper dir="${basedir}/xdocs"
>                    type="glob" from="*.xml"
to="${basedir}/docs/*.html"/>
>       </ac:outofdate>
>       <sequential>
>         <echo>Need to generate a target html file from source file
>               @{xmlfile}</echo>
>       </sequential>
>     </ac:for>

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


Mime
View raw message