You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2007/06/14 10:03:18 UTC
Problem
Hi,
a question related to sync task =
dir =
/srcdir
/sub
/tools
/sub1
/tools
/sub2
/subsub2
i want to exclude the /tools folder on first level
from synchronize, but if i exclude it from fileset
it get's deleted in todir
/targetdir
/sub
/sub1
/tools
/sub2
/subsub2
<fileset dir="srcdir" id="syncdir">
<excludes ="tools/**" />
</fileset>
<sync todir="targetdir">
<fileset refid="syncdir"
/>
How to prevent folders from getting deleted
from todir by sync task ?
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Problem
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
Hi,
-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]
Sent: Thursday, June 14, 2007 10:03 AM
To: user@ant.apache.org
Subject: <sync> Problem
/*
How to prevent folders from getting deleted
from todir by sync task ?
*/
ok found, that it's possible with ant 1.7
<sync todir="site">
<fileset dir="generated-site"/>
<preserveintarget>
<include name="**/CVS/**"/>
</preserveintarget>
</sync>
but we're still using ant 1.6.5
where can i get the <lsync> which is the <sync>
task patched with that behaviour for ant < 1.7 ???
i think it has been written by Dominique Devienne ?!
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org