ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: Yay! got uptodate to work, thanks all
Date Mon, 07 Mar 2005 09:14:59 GMT
Dominique Devienne wrote:

>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
>  
>
It is in the doc (in cvs) for the <for> task (as an example). I had 
modified <outofdate> to be
an iterator for the out of date source files.

I suppose I should document this in the <outofdate> task as well.. :-[

Peter

>  
>
>>-----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
>
>
>
>  
>


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


Mime
View raw message