You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/07/11 17:22:30 UTC

[Bug 220] - Use DSTAMP, TSTAMP, TODAY values in touch BugRat Report#339

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: ant-dev@jakarta.apache.org                            
! ReportedBy: anonymous-bug@cortexity.com               
! 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: ant-dev@jakarta.apache.org                                   |
! |  Reported By: anonymous-bug@cortexity.com                                  |
! |      CC list: Cc:                                                          |
! +----------------------------------------------------------------------------+
! |          URL:                                                              |
! +============================================================================+
! |                              DESCRIPTION                                   |
  instead of the current date format, use the DSTAMP, TSTAMP, TODAY values generated from <tstamp/>
+ 
+ ------- Additional Comments From conor@cortexebusiness.com.au  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>