Method Summary |
|
public void | add(FileNameMapper fileNameMapper) Add a FileNameMapper . |
public void | add(ResourceCollection rc) Add a collection of resources to touch. |
public void | addConfiguredMapper(Mapper mapper) Add a Mapper . |
public void | addFilelist(FileList list) Add a filelist to touch. |
public void | addFileset(FileSet set) Add a set of files to touch. |
protected synchronized void | checkConfiguration() Check that this task has been configured properly. |
public void | execute() Execute the touch operation. |
public void | setDatetime(String dateTime) Set the new modification time of file(s) touched
in the format "MM/DD/YYYY HH:MM AM or PM"
or "MM/DD/YYYY HH:MM:SS AM or PM". |
public void | setFile(File file) Sets a single source file to touch. |
public void | setMillis(long millis) Set the new modification time of file(s) touched
in milliseconds since midnight Jan 1 1970. |
public void | setMkdirs(boolean mkdirs) Set whether nonexistent parent directories should be created
when touching new files. |
public void | setPattern(String pattern) Set the format of the datetime attribute. |
public void | setVerbose(boolean verbose) Set whether the touch task will report every file it creates;
defaults to true . |
protected void | touch() Does the actual work; assumes everything has been checked by now. |
protected void | touch(File file) Touch a single file with the current timestamp (this.millis). |