From 027027618d047f645de0f499377ddce6aa833865 Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Tue, 4 Jan 2005 19:39:01 +0000 Subject: [PATCH] Looking in the sources, 1 second is used (the "unix" granularity) instead of the claimed 0 milliseconds. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277275 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/copy.html | 2 +- src/main/org/apache/tools/ant/taskdefs/Copy.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/manual/CoreTasks/copy.html b/docs/manual/CoreTasks/copy.html index 3aed0b710..185485e61 100644 --- a/docs/manual/CoreTasks/copy.html +++ b/docs/manual/CoreTasks/copy.html @@ -133,7 +133,7 @@ operation as filtersets The number of milliseconds leeway to give before deciding a file is out of date. This is needed because not every file system supports tracking the last modified time to the - millisecond level. Default is 0 milliseconds, or 2 seconds on DOS + millisecond level. Default is 1 second, or 2 seconds on DOS systems. This can also be useful if source and target files live on separate machines with clocks being out of sync. since Ant 1.6.2. diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index 775edba73..100838658 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -343,8 +343,9 @@ public class Copy extends Task { * The number of milliseconds leeway to give before deciding a * target is out of date. * - *

Default is 0 milliseconds, or 2 seconds on DOS systems.

- * + *

Default is 1 second, or 2 seconds on DOS systems.

+ * @param granularity the granularity used to decide if a target is out of + * date. * @since Ant 1.6.2 */ public void setGranularity(long granularity) {