I have tried using the <checksum> task for verifying apache file distributions. It seems to work well in most cases, but fails consistently in others. I spoke with Henk Penning to report the non-validating distributions. However, when he tried verifying my findings, they all succeeded for him. However, he wasn't using Ant's <checksum> task but "gpg -v --verify" on Unix (Apache's minotaur server, to be exact). My setup is Ant-1.6.2, tested on both WinXP SP2 and Win2k with the same results.

I'm providing examples of distributions that don't verify for me with <checksum>, the target I use for verification, and the output. I'm hoping someone can check this out and verify whether there is a bug in the <checksum> task or not.

http://archive.apache.org/dist/jakarta/commons/lang/binaries/
commons-lang-2.0.tar.gz
commons-lang-2.0.tar.gz.md5

http://archive.apache.org/dist/jakarta/oro/binaries/
jakarta-oro-2.0.8.tar.gz
jakarta-oro-2.0.8.tar.gz.md5

http://archive.apache.org/dist/jakarta/regexp/binaries/
jakarta-regexp-1.3.tar.gz
jakarta-regexp-1.3.tar.gz.md5

http://archive.apache.org/dist/jakarta/slide/binaries/
jakarta-slide-webdavclient-bin-2.0.tar.gz
jakarta-slide-webdavclient-bin-2.0.tar.gz.md5

http://archive.apache.org/dist/struts/binaries/
jakarta-struts-1.2.2.tar.gz
jakarta-struts-1.2.2.tar.gz.md5



<target name="librarycache.checksum" depends="-util-prepare.build">
<echo message="Running checksum on files in dir:${line.separator}${librarycachedir}"/>
<ac:for
param="file">
<path>
<fileset dir="${librarycachedir}" includes="*.tar.gz, *.zip, *.jar, *.tgz">
<present targetdir="${librarycachedir}">
<mapper type="glob" from="*" to="*.md5"/>
</present>
</fileset>
<fileset dir="${librarycachedir}" includes="*.tar.gz, *.zip, *.jar, *.tgz">
<present targetdir="${librarycachedir}">
<mapper type="glob" from="*" to="*.MD5"/>
</present>
</fileset>
</path>
<ac:sequential>
<basename property="@{file}.basename" file="@{file}"/>
<checksum file="@{file}" verifyProperty="@{file}"/><echo>
Checking file: [EMAIL PROTECTED]
Valid?: [EMAIL PROTECTED]</echo>
</ac:sequential>
</ac:for>
</target>



librarycache.checksum: [echo] Running checksum on files in dir: [echo] D:\dev\repository\thehartford_java_library_cache [echo] [echo] Checking file: commons-lang-2.0.tar.gz [echo] Valid?: false [echo] [echo] Checking file: jakarta-oro-2.0.8.tar.gz [echo] Valid?: false [echo] [echo] Checking file: jakarta-regexp-1.3.tar.gz [echo] Valid?: false [echo] [echo] Checking file: jakarta-slide-webdavclient-bin-2.0.tar.gz [echo] Valid?: false [echo] [echo] Checking file: jakarta-struts-1.1.tar.gz [echo] Valid?: true [echo] [echo] Checking file: jakarta-struts-1.2.2.tar.gz [echo] Valid?: false

BUILD SUCCESSFUL
Total time: 5 seconds

The positive result obtained with jakarta-struts-1.1.tar.gz is there to show that it actually does work in some cases. In fact, it works in most every case I've tried except for the ones listed above as failing. So, can anyone else verify these results?

thanks,

Jake


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to