https://bz.apache.org/bugzilla/show_bug.cgi?id=66188
Bug ID: 66188
Summary: <touch> datetime and <zip> modificationtime should
support the same default formats
Product: Ant
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The datetime attribute of the <touch> task and the modificationtime of the
<zip> (and derived) task do not support the same default date formats. <touch>
supports "MM/dd/YYYY hh:mm a" and "MM/dd/yyyy hh:mm:ss a", and <zip> supports
ISO 8601 formats or the epoch in milliseconds.
This is inconvenient because the same property can't be used for both tasks.
The date format can be specified for the <touch> task (with the pattern
attribute) and could be set to the desired ISO 8601 format, but no date format
can be used to parse an epoch in milliseconds.
I suggest enhancing the <touch> task to support at least an epoch in
milliseconds as a datetime. This could be implemented by calling
DateUtils.parseLenientDateTime() in Touch.checkConfiguration() if the other
formats don't match.
--
You are receiving this mail because:
You are the assignee for the bug.