Stefan Bodewig wrote:
<zip> has been changed to ignore directory resources
The intent was to ignore timestamp changes in directory resources when
determining whether or not to rebuild an existing JAR, not to ignore
directories altogether.
* a single empty directory is added to the sources - I think Ant will
now no longer create a new archive
Is this really a bug? I guess it depends on whether you consider directory entries in ZIP files valuable (other than the fact that it can cause problems for an entry to
exist but its parent dir entry to not exist).
* we are updating a zip or reading from another ArchiveFileSet and the
directories have Unix permissions set that are different from the
tasks-level permissions - I'm afraid we are going to lose the
original permissions.
Only during an incremental build after changing the source permissions, right?
there may be more problems with this approach.
There may. Feel free to revert/fix if you think you understand Zip.java better
than I do.
Note that in my test case, creating and deleting y.properties changes the timestamp of the dir. It would be OK if Zip therefore recreated the archive _once_ (the "second"
run). But it keeps on recreating it over and over, apparently because the timestamp of the dir entry does not get updated. If this problem can be fixed, then I guess we
would have a more conservative fix for the bug. Probably in that case the first au:assertDestIsUptodate should be removed from the test case.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org