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 43235] New: - Touch with mapper brokken
Date Wed, 29 Aug 2007 09:06:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43235>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43235

           Summary: Touch with mapper brokken
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: l117@worsaae.dk


If one uses touch with a mapper touch ignores the millis or datetime atributes
Instead touch uses the timestamp of the Resource. This happens due to:
                long modTime = (r.isExists()) ? r.getLastModified()
                    : defaultTimestamp;
in org.apache.tools.ant.taskdefs.Touch

This prohibits one from setting the time of the target file to a value defined 
in build.xml

A clean implementation would just ignore the time of the resource file
An advanced implementation could use the time of the resource file UNLESS one 
of the millis or datetime attributes is set

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message