Hello,
I've noticed some unexpected behaviour with Ant 1.5.1's <tar> task.
I first tried:
<tar destfile="${target}/test.tar.gz"
longfile="fail" compression="gzip">
<tarfileset dir="${source}">
<include name="**/*.java"/>
<include name="**/package.html"/>
</tarfileset>
</tar>
... which correctly created the test.tar.gz file. However, despite the
source files being updated (I checked this by the dates on the disk), the
test.tar.gz file was never updated. I switched on verbose execution, which
stated that each file was omitted as the output file was up-to-date (which
wasn't true).
I couldn't see any reason, so I tried the following workaround:
<tar basedir="${source}" destfile="${target}/test.tar.gz"
longfile="fail" compression="gzip"
includes="**/*.java,**/package.html">
</tar>
... and it worked ! Both should behave identically.
Is this a new or a known bug?
Thanks,
Chris
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>