ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: Yay! got uptodate to work, thanks all
Date Fri, 04 Mar 2005 16:55:16 GMT
You may be able to use ant-contrib <outofdate> as a collection to the <for>

    <ac:for param="xmlfile" xmlns:ac="antlib:net.sf.antcontrib">
          <fileset dir="${basedir}/xdocs" includes="**/*.xml"/>
        <mapper dir="${basedir}/xdocs"
                   type="glob" from="*.xml" to="${basedir}/docs/*.html"/>
        <echo>Need to generate a target html file from source file @{xmlfile}</echo>

Peter wrote:

>But now i realize i've got another problem, in that i really need to do process
>uptodate and build per file, like javac does. I see the <foreach> tag that
>ant-contrib provides, but must assume that there is a way to do this with the
>regular ant tasks.
>So i guess my question is how do i do what the javac task does, namely give a
>directory, for each item in the directory, see if it's output file is up to
>date, and if not build it.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message