http://nagoya.apache.org/bugzilla/show_bug.cgi?id=220

*** shadow/220  Sun May 20 17:19:12 2001
--- shadow/220.tmp.9649 Wed Jul 11 08:22:30 2001
***************
*** 1,17 ****
! Bug#: 220
! Product: Ant
! Version: 1.2
! Platform: All
! OS/Version: All
! Status: UNCONFIRMED   
! Resolution: 
! Severity: Enhancement
! Priority: High
! Component: Core tasks
! AssignedTo: [EMAIL PROTECTED]                            
! ReportedBy: [EMAIL PROTECTED]               
! URL: 
! Cc: 
! Summary: Use DSTAMP, TSTAMP, TODAY values in touch BugRat Report#339
! 
  instead of the current date format, use the DSTAMP, TSTAMP, TODAY values 
generated from <tstamp/>
--- 1,33 ----
! +============================================================================+
! | Use DSTAMP, TSTAMP, TODAY values in touch BugRat Report#339                |
! +----------------------------------------------------------------------------+
! |        Bug #: 220                         Product: Ant                     |
! |       Status: RESOLVED                    Version: 1.2                     |
! |   Resolution: FIXED                      Platform: All                     |
! |     Severity: Enhancement              OS/Version: All                     |
! |     Priority: High                      Component: Core tasks              |
! +----------------------------------------------------------------------------+
! |  Assigned To: [EMAIL PROTECTED]                                   |
! |  Reported By: [EMAIL PROTECTED]                                  |
! |      CC list: Cc:                                                          |
! +----------------------------------------------------------------------------+
! |          URL:                                                              |
! +============================================================================+
! |                              DESCRIPTION                                   |
  instead of the current date format, use the DSTAMP, TSTAMP, TODAY values 
generated from <tstamp/>
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-07-11 08:22 -------
+ The tstamp task can now generate the format for <touch>. For example, the 
+ following project will change the time on a file to 5 hours earlier
+ 
+ <project name="test" default="test" basedir=".">
+     <target name="test">
+         <tstamp>
+             <format property="touch.time" 
+                     pattern="MM/dd/yyyy hh:mm aa" 
+                     offset="-5" unit="hour"/>
+         </tstamp> 
+         <echo message="timestamp = ${touch.time}"/>
+         <touch file="test.txt" datetime="${touch.time}"/>
+     </target>
+ </project>

Reply via email to