Background
This article demonstrates how to create an MD5 checksums for jar files using Ant. This is useful to verify if correct jar files have been used to deploy in some environment by other team, e.g., SQA.
[wp_ad_camp_1]
Software Environment
- Windows 7 Professional SP1
- Eclipse – Kepler Release
- Java 1.7 (1.7.0_67 – Windows x86)
- Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Modify Build.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 | <project basedir="." default="master" name="master"> <property file="build.properties"/> ... <target depends="clean, module1, module2, module3, module4, web, copyout, ant-cfg, checksum"/> ... <target name="checksum"> <checksum> <fileset dir="${master.build.dist.dir}"> <include name="*.jar"></include> </fileset> </checksum> </target> </project> |
[wp_ad_camp_4]