mirror of
https://github.com/apache/ant.git
synced 2025-05-18 14:04:48 +00:00
(1) Make sure there is a Copyright notice on all visible files. (2) Make sure all years in which the file has been modified are listed. (3) Make sure the format is consistent, i.e. separate consecutive years with a dash, not a comma. When Stephane changed starteam.html it has been 2001 in France but 2002 in Australia - does that mean we add 2002 to the Copyright line or not? ;-) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
66 lines
2.3 KiB
HTML
66 lines
2.3 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<title>Apache Ant User Manual</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2><a name="touch">Touch</a></h2>
|
|
<h3>Description</h3>
|
|
<p>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 <a href="../CoreTypes/fileset.html">Fileset</a> (which
|
|
also includes directories).</p>
|
|
<p>For JDK 1.1 only the creation of new files with a modification time
|
|
of now works, all other cases will emit a warning.</p>
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td valign="top"><b>Attribute</b></td>
|
|
<td valign="top"><b>Description</b></td>
|
|
<td align="center" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">file</td>
|
|
<td valign="top">the name of the file</td>
|
|
<td valign="top" align="center">unless a nested fileset element
|
|
has been specified.</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">millis</td>
|
|
<td valign="top">specifies the new modification time of the file
|
|
in milliseconds since midnight Jan 1 1970</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">datetime</td>
|
|
<td valign="top">specifies the new modification time of the file
|
|
in the format MM/DD/YYYY HH:MM AM_or_PM.</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
</table>
|
|
<p>If both <code>millis</code> and <code>datetime</code> are omitted
|
|
the current time is assumed.</p>
|
|
<h3>Examples</h3>
|
|
<pre> <touch file="myfile"/></pre>
|
|
<p>creates <code>myfile</code> if it doesn't exist and changes the
|
|
modification time to the current time.</p>
|
|
<pre> <touch file="myfile" datetime="06/28/2000 2:02 pm"/></pre>
|
|
<p>creates <code>myfile</code> if it doesn't exist and changes the
|
|
modification time to Jun, 28 2000 2:02 pm (14:02 for those used to 24
|
|
hour times).</p>
|
|
<pre> <touch datetime="09/10/1974 4:30 pm">
|
|
<fileset dir="src_dir"/>
|
|
</touch></pre>
|
|
<p>changes the modification time to Oct, 09 1974 4:30 pm of all files and directories
|
|
found in <code>src_dir</code>. </p>
|
|
<hr>
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights
|
|
Reserved.</p>
|
|
|
|
</body>
|
|
</html>
|
|
|