https://bz.apache.org/bugzilla/show_bug.cgi?id=59562
--- Comment #5 from Gilles QUERRET <[email protected]> --- I'd say the roundup method is working correctly and as expected. To my mind, the problem lies in org.apache.tools.ant.types.selectors.SelectorUtils#isOutOfDate(Resource src, Resource target, long granularity) method which is called when we determine if a file has to be updated. This works correctly for filesystem resources on Windows, as the parameter granularity is set to 1 which is the right value on NTFS. This granularity is found in org.apache.tools.ant.util.FileUtils#getFileTimestampGranularity(). When working with ZIP file, this method should return 2000 in order to counterbalance the roundup. An easy fix (but I don't know the impact yet) would be to replace at line 1545 of org.apache.tools.ant.taskdefs.Zip the call to ResourceUtils.selectOutOfDateSources(this, rs, mapper, getZipScanner()) with ResourceUtils.selectOutOfDateSources(this, rs, mapper, getZipScanner(), 2000L) so that granularity would be set at the ZIP file level instead of inheriting from the OS specific value. -- You are receiving this mail because: You are the assignee for the bug.
