|
127 | 127 | <tarfileset dir="${dist.build.dir}"/> |
128 | 128 | </tar> |
129 | 129 | <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> |
131 | 133 | <delete file="${dist.bin.tar.name}" /> |
132 | 134 | <!-- Windows zip binary --> |
133 | 135 | <fixcrlf srcdir="${dist.bin}" eol="crlf" includes="*.txt" /> |
134 | 136 | <zip zipfile="${dist.bin.zip.name}" > |
135 | 137 | <zipfileset dir="${dist.build.dir}"/> |
136 | 138 | </zip> |
137 | | - <checksum file="${dist.bin.zip.name}"/> |
| 139 | + <antcall target="internal-md5"> |
| 140 | + <param name="path" value="${dist.bin.zip.name}"/> |
| 141 | + </antcall> |
138 | 142 | <!-- Source --> |
139 | 143 | <delete dir="${dist.bin}" /> |
140 | 144 | <copy todir="${dist.src}"> |
|
148 | 152 | <tarfileset dir="${dist.build.dir}"/> |
149 | 153 | </tar> |
150 | 154 | <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> |
152 | 158 | <delete file="${dist.src.tar.name}" /> |
153 | 159 | <!-- Windows zip source --> |
154 | 160 | <fixcrlf srcdir="${dist.src}" eol="crlf" includes="*.txt,*.xml,*.css,*.properties" /> |
155 | 161 | <zip zipfile="${dist.src.zip.name}" > |
156 | 162 | <zipfileset dir="${dist.build.dir}"/> |
157 | 163 | </zip> |
158 | | - <checksum file="${dist.src.zip.name}"/> |
| 164 | + <antcall target="internal-md5"> |
| 165 | + <param name="path" value="${dist.src.zip.name}"/> |
| 166 | + </antcall> |
159 | 167 | <!-- Tidy --> |
160 | 168 | <delete dir="${dist.build.dir}" /> |
161 | 169 | </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> |
162 | 175 |
|
163 | 176 | <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test"> |
164 | 177 | <fail message="There were test failures." /> |
|
0 commit comments