ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re[2]: Question about copying files
Date Mon, 26 Aug 2002 18:51:08 GMT
Hello Dominique,

Is there a technique works with Ant-1.4.1 that will do this?  If so, I
imagine it is more verbose, but I'd like to do this *and* keep
Ant-1.4.1 compatibility.

Any suggestions?

Jake

Monday, August 26, 2002, 10:11:47 AM, you wrote:

DD> I believe this can be achieved by clever use of the new <selectors>
DD> sub-elements of <fileset>. Check it out in the doc. --DD

DD> -----Original Message-----
DD> From: Christian Cryder [mailto:christianc@granitepeaks.com] 
DD> Sent: Monday, August 26, 2002 10:04 AM
DD> To: Ant-User
DD> Subject: Question about copying files

DD> Hi folks,

DD> I need to copy sample files sometimes, and I currently do it like this:

DD>     <copy todir="${build.dir}" >
DD>         <fileset dir="${build.dir}" />
DD>         <mapper type="glob" from="sample.*" to="*" />
DD>     </copy>

DD> What I need to know how to do, is to only copy files that _do not already
DD> exist_.

DD> In other words, if I have the following files in a directory:

DD>   sample.foo1 (unchanged, foo1 exists)
DD>   sample.foo2 (changed, foo2 exists)
DD>   sample.foo3 (new, foo3 does not exist)

DD> only foo3 should be copied.

DD> Suggestions?

DD> tia,
DD> Christian
DD> ----------------------------------------------
DD> Christian Cryder [christianc@atmreports.com]
DD> Internet Architect, ATMReports.com
DD> Barracuda - http://barracuda.enhydra.org
DD> ----------------------------------------------
DD> "Coffee? I could quit anytime, just not today"


DD> --
DD> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
DD> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

DD> --
DD> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
DD> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
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