Skip to content

Commit 2f5c591

Browse files
author
Stephen Colebourne
committed
Setup md5 files correctly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@294930 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9857f8a commit 2f5c591

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

build.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,18 @@
127127
<tarfileset dir="${dist.build.dir}"/>
128128
</tar>
129129
<gzip zipfile="${dist.bin.gz.name}" src="${dist.bin.tar.name}"/>
130-
<checksum file="${dist.bin.gz.name}"/>
130+
<antcall target="internal-md5">
131+
<param name="path" value="${dist.bin.gz.name}"/>
132+
</antcall>
131133
<delete file="${dist.bin.tar.name}" />
132134
<!-- Windows zip binary -->
133135
<fixcrlf srcdir="${dist.bin}" eol="crlf" includes="*.txt" />
134136
<zip zipfile="${dist.bin.zip.name}" >
135137
<zipfileset dir="${dist.build.dir}"/>
136138
</zip>
137-
<checksum file="${dist.bin.zip.name}"/>
139+
<antcall target="internal-md5">
140+
<param name="path" value="${dist.bin.zip.name}"/>
141+
</antcall>
138142
<!-- Source -->
139143
<delete dir="${dist.bin}" />
140144
<copy todir="${dist.src}">
@@ -148,17 +152,26 @@
148152
<tarfileset dir="${dist.build.dir}"/>
149153
</tar>
150154
<gzip zipfile="${dist.src.gz.name}" src="${dist.src.tar.name}"/>
151-
<checksum file="${dist.src.gz.name}"/>
155+
<antcall target="internal-md5">
156+
<param name="path" value="${dist.src.gz.name}"/>
157+
</antcall>
152158
<delete file="${dist.src.tar.name}" />
153159
<!-- Windows zip source -->
154160
<fixcrlf srcdir="${dist.src}" eol="crlf" includes="*.txt,*.xml,*.css,*.properties" />
155161
<zip zipfile="${dist.src.zip.name}" >
156162
<zipfileset dir="${dist.build.dir}"/>
157163
</zip>
158-
<checksum file="${dist.src.zip.name}"/>
164+
<antcall target="internal-md5">
165+
<param name="path" value="${dist.src.zip.name}"/>
166+
</antcall>
159167
<!-- Tidy -->
160168
<delete dir="${dist.build.dir}" />
161169
</target>
170+
<target name="internal-md5">
171+
<basename property="_base" file="${path}"/>
172+
<checksum file="${path}" property="md5"/>
173+
<echo message="${md5} *${_base}" file="${path}.md5"/>
174+
</target>
162175

163176
<target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
164177
<fail message="There were test failures." />

0 commit comments

Comments
 (0)