ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: Directory Sync
Date Thu, 09 Apr 2009 15:52:40 GMT
On Mon, Mar 23, 2009 at 8:36 PM, Eger, Patrick <> wrote:
> Hi, recently was working with some build scripts and found a deficiency in
> the “Sync” task, namely that it cannot actually compare file content and
> instead works strictly off file date. This was not usable for us and so I
> implemented the attached task, that will sync two directory trees based on
> file contents. I am submitting for inclusion in core or contrib, or if you’d
> like to refactor and integrate into the existing Sync task (I did not look
> at the code for Sync at all). LMK if any questions, I’m not on the list so
> please CC me.

If you need to read both files to compare them, you might as well
delete the destination and copy the source, quite often this will be
faster. Unless you have some preserve in target that is.

And as Stefan mentions, it would have been much better to enhance sync
with a plugeable strategy for file comparison than starting from
scratch. Especially since the pieces are already in place very likely,
like by reusing the <different> selector. --DD

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

View raw message