From 5086d936941d88eb84fbe326c8982bff92887237 Mon Sep 17 00:00:00 2001
From: Steve Loughran
Date: Wed, 7 Jan 2004 17:49:37 +0000
Subject: [PATCH] to handle filelists. Forced me to add more tests for
new and existing touch code, and in the process note that the granularity for
unix filesystems is not 0 but 1000 milliseconds. oops. PR: 23526 Submitted
by: gudnabrsam@yahoo.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275869 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/touch.html | 5 +-
src/etc/testcases/taskdefs/touch.xml | 26 ++++++
.../org/apache/tools/ant/taskdefs/Touch.java | 67 ++++++++------
.../org/apache/tools/ant/util/FileUtils.java | 6 +-
.../apache/tools/ant/taskdefs/TouchTest.java | 87 ++++++++++++++++++-
5 files changed, 161 insertions(+), 30 deletions(-)
diff --git a/docs/manual/CoreTasks/touch.html b/docs/manual/CoreTasks/touch.html
index eb3922b87..1b7f22d57 100644
--- a/docs/manual/CoreTasks/touch.html
+++ b/docs/manual/CoreTasks/touch.html
@@ -12,7 +12,8 @@
Changes the modification time of a file and possibly creates it at
the same time. In addition to working with a single file, this Task
can also work a Fileset (which
-also includes directories).
+also includes directories)
+or a Filelist (since Ant 1.6).
For JDK 1.1 only the creation of new files with a modification time
of now works, all other cases will emit a warning.
Parameters
@@ -26,6 +27,7 @@ of now works, all other cases will emit a warning.
file |
the name of the file |
unless a nested fileset element
+ or a nested filelist element
has been specified. |
@@ -67,4 +69,3 @@ Reserved.