blob: 9cefd4037896a40e0e64b1330dba8df8b3e19032 [file] [log] [blame]
<!--
Copyright (c) 2008, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<project
default="fixzips"
basedir=".">
<target name="fixzips">
<property
name="buildDirectory"
value="/shared/webtools/committers/wtp-R3.0-R/20080616152118"/>
<property
name="buildLabel"
value="R-3.0-20080616152118"/>
<antcall target="fixzip">
<param
name="newarchiveName"
value="wtp-sdk-noop-R-3.0-20080616152118a.zip"/>
<param
name="archiveName"
value="wtp-sdk-noop-R-3.0-20080616152118ORIG.zip"/>
</antcall>
</target>
<target name="fixzip">
<zip destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
<zipfileset
src="${buildDirectory}/${buildLabel}/${archiveName}"
excludes="eclipse/features/org.eclipse.jpt.sdk*/**,eclipse/features/org.eclipse.jst.jsf.apache.trinidad.tagsupport*/**"/>
</zip>
<antcall target="createChecksums">
<param
name="archiveName"
value="${newarchiveName}"/>
</antcall>
</target>
<target name="createChecksums">
<!-- This createChecksums task creates two files, for use in two contexts.
a. an x.md5 file, that has the name of the file in the contents.
This is good for some "third party" executables, like md5summ, that
expects the name in the file.
b. since ant does not deal well with md5 files with anything in them
other than the checksum, we provide same thing in a file with
an md5antformat extension, that has only the checksum.
-->
<mkdir dir="${buildDirectory}/${buildLabel}/checksum"/>
<checksum
file="${buildDirectory}/${buildLabel}/${archiveName}"
property="md5"/>
<echo
message="${md5} *${archiveName}"
file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/>
<echo
message="${md5}"
file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/>
</target>
</project>