DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21245>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21245 jar rebuilds when it shouldn't Summary: jar rebuilds when it shouldn't Product: Ant Version: 1.5.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello, I ran across a weird bug in jar. (It may be in unzip et al as well.) Here's my jar command: <jar jarfile="lib/ppm-server.jar"> <fileset dir="test"/> <fileset dir="testx"/> </jar> Here's the directory structure: test/test1/a testx/test1/b testx/test1 has a new timestamp than test/test1. Basically, it rebuilds the jar every time with that timestamp. If I switch the order of the filesets, it acts as I expect. Here's the end of the debug output the first time I run ant with that target: ppm-server.jar: fileset: Setup scanner in dir /home/stefie10/dev/lifeharbor/ppm20/ppm/server/test with patternSet{ includes: [] excludes: [] } fileset: Setup scanner in dir /home/stefie10/dev/lifeharbor/ppm20/ppm/server/testx with patternSet{ includes: [] excludes: [] } [jar] Building jar: /home/stefie10/dev/lifeharbor/ppm20/ppm/server/lib/ppm-server.jar [jar] adding directory META-INF/ [jar] adding entry META-INF/MANIFEST.MF [jar] adding directory test1/ [jar] adding entry test1/a [jar] adding entry test1/b Here's the output the second time: ppm-server.jar: fileset: Setup scanner in dir /home/stefie10/dev/lifeharbor/ppm20/ppm/server/test with patternSet{ includes: [] excludes: [] } fileset: Setup scanner in dir /home/stefie10/dev/lifeharbor/ppm20/ppm/server/testx with patternSet{ includes: [] excludes: [] } [jar] omitted as is up to date. [jar] test1 omitted as test1/ is up to date. [jar] test1/a omitted as test1/a is up to date. [jar] omitted as is up to date. [jar] test1 added as test1/ is outdated. [jar] test1/b omitted as test1/b is up to date. [jar] Building jar: /home/stefie10/dev/lifeharbor/ppm20/ppm/server/lib/ppm-server.jar [jar] adding directory META-INF/ [jar] adding entry META-INF/MANIFEST.MF [jar] adding directory test1/ [jar] adding entry test1/a [jar] adding entry test1/b The weirdness is that the "test1" is outdated the second time it encounters it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]