ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs
Date Thu, 20 Jan 2005 14:13:06 GMT
On 20 Jan 2005, <> wrote:

>   Allow <sync> to keep files in target even if they are not in any
>   source directories, PR 21832

Two things:

(1) Dominique, could you please try a build of CVS HEAD (doesn't
necessarily have to be any more recent than a month or so) on one
of your larger sync targets to see whether <sync> has slowed down?

I have patched DirectoryScanner to optimize non-pattern matches in
December, so the performance problems you expected should have
been addressed.

(2) Names again.

    <sync todir="${dest}">
      <fileset dir="${src}"/>
        <exclude name="e/f"/>

<deletefromtarget> is a <fileset> that doesn't allow dir to be
set.  It implicitly contains <exclude>s for all the files that
have been matched by one of the source-<fileset> (everything that
should be there).  It can be used to keep things like logfiles or
config files or similar in you target directory.  Default is to
delete everything not present in any of the source sets.

Now, is <deletefromtarget> a good name?  Is there a better one to
capture what it does?


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

View raw message