Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
Hi Stefan, Thanks for the super-rapid reply. I'll try a couple of approaches and report back what seems to do the best job. It might just be that using (in a switch statement catering for all desired operating systems) is the only way to get exact timestamps, ACLs, etc. Again thanks! Steve

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Stefan Bodewig
On 2011-10-18, Steve Amerige wrote: > I'm wondering if the 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? :-) Not at all, that's the forma

Re: does not "preservelastmodified" on directories.

2011-10-18 Thread Steve Amerige
Hi Cyril and all, I'm wondering if the 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 j

Re: does not "preservelastmodified" on directories.

2011-10-13 Thread Stefan Bodewig
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 director

does not "preservelastmodified" on directories.

2011-10-13 Thread Cyril Sagan
My goal is to copy a directory tree, and preserve the last-modified-time of all the files and *directories* in the copied tree. Through my research through the Ant manual, mailing lists, and bug database I find no mention of this being possible, or reported previously as an enhancement request.