Browse Source

Documenting a feature that had been previously added (oops!).

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271248 13f79535-47bb-0310-9956-ffa450edef68
master
Erik Hatcher 23 years ago
parent
commit
b720f6461e
2 changed files with 17 additions and 4 deletions
  1. +3
    -1
      WHATSNEW
  2. +14
    -3
      docs/manual/CoreTasks/tstamp.html

+ 3
- 1
WHATSNEW View File

@@ -137,7 +137,7 @@ Other changes:
<antcall> using nested <reference> elements or the new inheritRefs
attribute.

* <fail> no supports builds to fail based on conditions via if and
* <fail> now supports builds to fail based on conditions via if and
unless attributes.

* Ant now comes with two new BuildLogger implementations - one that
@@ -158,6 +158,8 @@ Other changes:
* You can now set an ANT_ARGS environment variable to hold arguments you
always want passed to the 'ant' command -- for example, if you always
want to use a different logger or the -find flag.
* <tstamp> now supports a new "prefix" attribute to prefix properties set.WHATSNEW

Changes from Ant 1.4 to Ant 1.4.1
===========================================


+ 14
- 3
docs/manual/CoreTasks/tstamp.html View File

@@ -28,7 +28,10 @@ probably in an initialization target.</p>
<td valign="top"><b>Description</b></td>
<td align="center" valign="top"><b>Required</b></td>
</tr>
<tr> <td colspan="3"> No parameters</td>
<tr>
<td valign="top">prefix</td>
<td valign="top">Prefix used for all properties set. The default is no prefix.</td>
<td align="center" valign="top">No</td>
</tr>
</table>

@@ -123,10 +126,18 @@ using English locale (eg. 21-May-2001).</p>
</pre>
<p>
Creates a timestamp, in the property touch.time, 5 hours before the current time. The format in this example
is suitable for use with the &lt;touch&gt; task</p>
is suitable for use with the &lt;touch&gt; task. The standard properties are set also.</p>

<pre>
&lt;tstamp prefix="start"/&gt;
</pre>
<p>
Sets three properties with the standard formats, prefixed with "start.":
<code>start.DSTAMP</code>, <code>start.TSTAMP</code>, and <code>start.TODAY</code>.</p>


<hr>
<p align="center">Copyright &copy; 2001 Apache Software Foundation. All rights Reserved.</p>
<p align="center">Copyright &copy; 2002 Apache Software Foundation. All rights Reserved.</p>

</body>
</html>


Loading…
Cancel
Save