diff --git a/docs/manual/CoreTasks/tstamp.html b/docs/manual/CoreTasks/tstamp.html index 8d5ee6030..bea52dd67 100644 --- a/docs/manual/CoreTasks/tstamp.html +++ b/docs/manual/CoreTasks/tstamp.html @@ -8,14 +8,19 @@

Tstamp

+

Description

-

Sets the DSTAMP, TSTAMP and TODAY properties in the current project. The -DSTAMP is in the "yyyymmdd" format, the TSTAMP is in the "hhmm" -format and TODAY is "month day year".

-

These properties can be used in the buildfile, for instance, to create -timestamped filenames or used to replace placeholder tags inside documents to -indicate, for example, the release date. The best place for this task is in your -initialization target.

+

Sets the DSTAMP, TSTAMP, and TODAY +properties in the current project. The DSTAMP property is in the +format "yyyymmdd", TSTAMP is in the +format "hhmm", and TODAY is in the +format "month day year". + +

These properties can be used in the build-file, for instance, to create +time-stamped filenames, or used to replace placeholder tags inside documents +to indicate, for example, the release date. The best place for this task is +probably in an initialization target. +

Parameters

@@ -28,9 +33,10 @@ initialization target.

Nested Elements

-The tstamp task supports a format nested element which allows a property to be -given the current date and time in a given format. The date/time patterns are as defined in the Java -SimpleDateFormat class. +The Tstamp task supports a <format> nested element that +allows a property to be set to the current date and time in a given format. +The date/time patterns are as defined in the Java +SimpleDateFormat class. @@ -42,33 +48,38 @@ SimpleDateFormat class. - +
property - The property which is to receive the date/time string in the given pattern + The property to receive the date/time string in the given pattern. Yes
patternThe date/time pattern to be used. The values are defined by the Java - SimpleDateFormat classThe date/time pattern to be used. The values are as defined by the Java SimpleDateFormat class. Yes

Examples

-

Set the standard DSTAMP, TSTAMP and TODAY properties according to the formats above

-
  <tstamp/>
-

As for the above example, set the standard properties and also set the property -"TODAY_UK" with the date/time pattern "d MMM yyyy"

+
+  <tstamp/>
+
-
  <tstamp>
-    <format property="TODAY_UK" pattern="d MMMM yyyy"/>
+

+sets the standard DSTAMP, TSTAMP, +and TODAY properties according to the default formats.

+
+  <tstamp>
+    <format property="TODAY_UK" pattern="d-MMMM-yyyy"/>
   </tstamp>
 
+

+sets the standard properties as well as the property +TODAY_UK with the date/time pattern "d-MMMM-yyyy" +(eg., 21-May-2001).


-

Copyright © 2000,2001 Apache Software Foundation. All rights -Reserved.

+

Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.