ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc-André Landry <>
Subject Need help to used the <copy>, <mapper type="glob"> & <update>?
Date Sun, 02 Jun 2002 18:30:35 GMT
I wan't to use the <copy> in conjunction with <mapper type="glob"> and
<update> to do a backup my source file. Here is what I have figured out but
I don't know how to use <update> to only copy updated file.
<copy todir="./src">
    <fileset dir="./src">
        <include name="**/*.java"/>
        <exclude name="**/.*.*"/><!-- any pre-dotted file/invisible under
*nix -->
    <mapper type="glob" from="**/*.java" to="**/.*.${build}.java~"/>

 I want to keep every copy (at each build) to be able to trace down any
change I do to my code. How would I do to use <update> to exclude unchanged
file? Could I used something like <if> within <fileset> or before the mapper
to do such a job. I haven't really understand the <if> task by the way.

Thank you for your help,
Marc-Andr&eacute; =)
When things get messed up... don't look at me! =P

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

View raw message