ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 61654] Ant Copy Task Documentation Misleading and Inaccurate
Date Tue, 24 Oct 2017 18:22:45 GMT

--- Comment #3 from Stefan Bodewig <> ---

$ cat x.xml 
  <mkdir dir="a/example"/>
  <touch file="a/example/file"/>
  <sleep seconds="3"/>
  <mkdir dir="b/example"/>
  <touch file="b/example/file"/>
  <copy todir="a" overwrite="false">
    <fileset dir="b"/>
$ ant -f x.xml 
Buildfile: /tmp/x.xml
    [mkdir] Created dir: /tmp/a/example
    [touch] Creating /tmp/a/example/file
    [mkdir] Created dir: /tmp/b/example
    [touch] Creating /tmp/b/example/file
     [copy] Copying 1 file to /tmp/a

Total time: 3 seconds

If you look at the code, then using overwrite="false" really only sets a
boolean variable that us false anyway. There is no difference between the
default and setting it explicitly.

Could it be anything else that you are seeing like filesystems on different
machines with clocks that differ? Maybe you need to play with the granularity

You are receiving this mail because:
You are the assignee for the bug.
View raw message