Hello,
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 -->
</fileset>
<mapper type="glob" from="**/*.java" to="**/.*.${build}.java~"/>
</copy>
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é =)
When things get messed up... don't look at me! =P
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|