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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to