ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21014] New: - Touch not precise enough
Date Mon, 23 Jun 2003 15:22:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21014>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Touch not precise enough

           Summary: Touch not precise enough
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jonas.kilian@dresdner-bank.com


...it should handle seconds in the datetime parameter.

My use case:
1. [Local Buildfile]  Builds distribution package
2. [Local Buildfile]  Uploads distribution package to remote 
                      server including remote buildfile
3. [Local Buildfile]  runs remote buildfile via telnet
4. [Remote Buildfile] uses ECHO to write timestamp file if 
                      installation successful
5. [Local Buildfile]  downloads timestamp file and reads timestamp 
                      property
6. [Local Buildfile]  uses TOUCH with parameter datetime containing
                      just read timestamp on some temporary file
7. [Local Buildfile]  uses UPTODATE to verify that temporary file is 
                      NEWER than the archive built in 1.

This crashes from time to time, if rebuild is very fast:
e.g. the archive is created at 02:02:10, the installation is complete at 
02:02:43, but the temporary touched file's date is set to 02:02:00

Note above, that the touch is just a workaround because UPTODATE is only 
working with files. But there might be other problem cases, too.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message