ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47373] Zip.java patch to support setting last modified date
Date Wed, 24 Jun 2009 13:53:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47373





--- Comment #17 from Stefan Bodewig <bodewig@apache.org>  2009-06-24 06:53:21 PST ---
if we want to implement this on the resource rather than the task side (and I
like the idea) than the improved resource infrastructure in svn trunk will
help.

It should be straight forward to write a "fixedlastmodfied" resource collection
that wrapped any other resource collection returning
(org.apache.tools.ant.types.resources.) ResourceDecorators around the originals
while overriding the getLastModified method.

Using such a data type would turn Mark's example into

<zip>
  <fixlastmodified datetime=...>
    <resources>
      <zipfileset/>
      <zipfileset/>
      <zipfileset/>
      <zipfileset/>
      <zipfileset/>
    </resources>
  </fixlastmodified>
</zip>

This means two additional elements compared to implementing it at the task
level but OTOH it will be available to all tasks (like future archive formats,
or copy) and thus be much more powerful.

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

Mime
View raw message