Now create a target in the build file to create an md5 checksum of the distribution zip file
<!-- ==========================================================
checksum
Create an md5 checksum for the distribution zip file
========================================================== -->
<target name="checksum" depends="init">
<echo level="info">
***********************************************************************
*
* Creating checksum for ${dir.deploy}/*
*
***********************************************************************
</echo>
<property name="checksum.ext" value=".md5"/>
<checksum fileext="${checksum.ext}" todir="${dir.deploy}">
<fileset dir="${dir.deploy}">
<include name="**/*"/>
<exclude name="**/*${checksum.ext}"/>
</fileset>
</checksum>
</target>
checksum
Create an md5 checksum for the distribution zip file
========================================================== -->
<target name="checksum" depends="init">
<echo level="info">
***********************************************************************
*
* Creating checksum for ${dir.deploy}/*
*
***********************************************************************
</echo>
<property name="checksum.ext" value=".md5"/>
<checksum fileext="${checksum.ext}" todir="${dir.deploy}">
<fileset dir="${dir.deploy}">
<include name="**/*"/>
<exclude name="**/*${checksum.ext}"/>
</fileset>
</checksum>
</target>
> ant zip checksum
There should be a JP.zip.md5 file in the JP/deploy directory. Now add this line to the bottom of the 'zip' target to call checksum after creating the zip file.
<zip
... >
...
</zip>
<antcall target="checksum"/>
</target>
...
</zip>
<antcall target="checksum"/>
</target>
> ant zip
Make sure that everything worked out all right.
> ant svn
commit, but do not let svn control the deploy directory
Checksum