ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xeno" <djx...@mac.com>
Subject Need help to used the <copy>, <mapper type="glob"> & <update>?
Date Sun, 02 Jun 2002 19:28:16 GMT
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&eacute; =)
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>


Mime
View raw message