ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs SyncTest.java
Date Thu, 20 Jan 2005 14:13:06 GMT
On 20 Jan 2005, <bodewig@apache.org> 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}"/>
      <deletefromtarget>
        <exclude name="e/f"/>
      </deletefromtarget>
    </sync>

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

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message