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:[EMAIL PROTECTED]

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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to