Hi Cyril and all,
I'm wondering if the <zip> task might get you what you're looking for. Although, I'm baffled over the the statement that "Zip
archives store file modification times with a granularity of two seconds." You're kidding, right? :-) The roundup attribute
doesn't fix this issue, it just changes the badness from one form to another.
The <tar> task doesn't mention the 2-second granularity problem, but even with <tarfileset>, the documentation seems to imply that
it damages the modes (see the filemode and dirmode attributes).
When I get a chance, I'll test these.
Enjoy,
Steve Amerige
SAS Institute, Deployment Software Development
On 10/13/2011 11:55 PM, Stefan Bodewig wrote:
On 2011-10-13, Cyril Sagan wrote:
I glanced at the code for org.apache.tools.ant.util.FileUtils and
ResourceUtils, from the source it doesn't look like the preservelastmodified
attribute was ever intended to apply to directories. Can someone from
ant-dev offer an opinion on why directories aren't (shouldn't be?) included
in the semantics for preserving modification times?
Because you are the first person who ever cared about the last modified
times of directories, or at least the first person who ever spoke up.
Really. It just never occured to us.
Does this seems like a reasonable enhancement request?
Yes.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org