ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: New attribute for DifferentSelector
Date Fri, 02 Jul 2004 08:14:00 GMT
The depend selector is asymetric between source and target.

The different selector is not.

For instance :

- the different selector returns true if the source exist and the target 
does not, but also
if the source does not exist and the target does

- the different selector, if it compares timestamps, returns true when 
timestamps differ,
regardless of whether the source file is more recent than the target or 
the contrary.

On top of that the different selector can compare filesizes, which the 
depend selector does not do,
but is not a time expensive operation.

What I want to achieve with this ignorecontents attribute on different 
is the ability to select quickly
files which need to be synched, without comparing contents.



Stefan Bodewig wrote:

>On Fri, 02 Jul 2004, Antoine Levy-Lambert <> wrote:
>>Hello, I would like to add a new attribute to DifferentSelector :
>>ignorecontents.  This attribute would default to false (current
>>behavior).  If you set it to true, then <different/> would compare
>>files only based on timestamps and file size, skipping the binary
>How would that be different from the <depend> selector?

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

View raw message