On 23 Sep 2003, <[EMAIL PROTECTED]> wrote:

>   Add a granularity attribute to <copy>, <move> and <sync> that
>   works the same way as the attribute of the <depend> selector.

the original problem is that source and target directories live on
different machines with clocks being slightly (but for a well known
amount) out of sync.

You can deal with it in <copy> by explicitly using a <depend>
selector, but selectors are not available in <sync>.

I have not merged it into the 1.6 branch for two reasons:

(1) I'm not sure whether we should add it to <copy> and <move> at all
or rather require the explicit usage of <depend>.  This would of
course lead to a lot of duplication.  Compare

<copy todir="/target" granularity="5000">
  <fileset dir="/source1"/>
  <fileset dir="/source2"/>

  <mapper type="glob" from="*" to="*.bak"/>
</copy>

to

<copy todir="/target">
  <fileset dir="/source1">
    <depend granularity="5000" targetdir="/target">
      <mapper type="glob" from="*" to="*.bak"/>
    </depend>
  </fileset>
  <fileset dir="/source2">
    <depend granularity="5000" targetdir="/target">
      <mapper type="glob" from="*" to="*.bak"/>
    </depend>
  </fileset>

  <mapper type="glob" from="*" to="*.bak"/>
</copy>

the same mapper three times, definition of targetdir in three places.

(2) The changes to SourceFileScanner and ResourceUtils will have an
impact on Windows.  As I'm unable to test anything there, I'd rather
wait for failure reports before I go and merge things.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to