blob: 48805b24cc41b21281daba510682a6c842a6425a [file] [log] [blame]
nickboldt03a6f082019-02-12 15:17:11 -05001<!--
2 Copyright (c) 2008, 2019 IBM Corporation and others.
3 This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License 2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/legal/epl-2.0/
7
8 SPDX-License-Identifier: EPL-2.0
9
10 Contributors:
11 IBM Corporation - initial API and implementation
12 -->
david_williamsa9509362008-06-21 01:52:13 +000013<project
14 default="fixzips"
15 basedir=".">
david_williams2398e362011-03-05 02:45:39 +000016 <target name="fixzips">
david_williamsa9509362008-06-21 01:52:13 +000017 <property
18 name="buildDirectory"
19 value="/shared/webtools/committers/wtp-R3.0-R/20080616152118"/>
20 <property
21 name="buildLabel"
22 value="R-3.0-20080616152118"/>
david_williams2398e362011-03-05 02:45:39 +000023 <antcall target="fixzip">
david_williamsa9509362008-06-21 01:52:13 +000024 <param
25 name="newarchiveName"
26 value="wtp-jpt-R-3.0-20080616152118a.zip"/>
27 <param
28 name="archiveName"
29 value="wtp-jpt-R-3.0-20080616152118ORIG.zip"/>
30 </antcall>
david_williams2398e362011-03-05 02:45:39 +000031 <antcall target="fixzip">
david_williamsa9509362008-06-21 01:52:13 +000032 <param
33 name="newarchiveName"
34 value="wtp-noop-R-3.0-20080616152118a.zip"/>
35 <param
36 name="archiveName"
37 value="wtp-noop-R-3.0-20080616152118ORIG.zip"/>
38 </antcall>
david_williams2398e362011-03-05 02:45:39 +000039 <antcall target="fixzip">
david_williamsa9509362008-06-21 01:52:13 +000040 <param
41 name="newarchiveName"
42 value="wtp-R-3.0-20080616152118a.zip"/>
43 <param
44 name="archiveName"
45 value="wtp-R-3.0-20080616152118ORIG.zip"/>
46 </antcall>
47 </target>
david_williams2398e362011-03-05 02:45:39 +000048 <target name="fixzip">
49 <zip destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
david_williamsa9509362008-06-21 01:52:13 +000050 <zipfileset
51 src="${buildDirectory}/${buildLabel}/${archiveName}"
52 excludes="eclipse/features/org.eclipse.jpt_2*/**"/>
53 </zip>
david_williams2398e362011-03-05 02:45:39 +000054 <antcall target="createChecksums">
david_williamsa9509362008-06-21 01:52:13 +000055 <param
56 name="archiveName"
57 value="${newarchiveName}"/>
58 </antcall>
59 </target>
david_williams2398e362011-03-05 02:45:39 +000060 <target name="createChecksums">
david_williamsa9509362008-06-21 01:52:13 +000061 <!--
62 This createChecksums task creates two files, for use in two
63 contexts. a. an x.md5 file, that has the name of the file in
64 the contents. This is good for some "third party"
65 executables, like md5summ, that expects the name in the
66 file. b. since ant does not deal well with md5 files with
67 anything in them other than the checksum, we provide same
68 thing in a file with an md5antformat extension, that has
69 only the checksum.
70 -->
david_williams2398e362011-03-05 02:45:39 +000071 <mkdir dir="${buildDirectory}/${buildLabel}/checksum"/>
david_williamsa9509362008-06-21 01:52:13 +000072 <checksum
73 file="${buildDirectory}/${buildLabel}/${archiveName}"
74 property="md5"/>
75 <echo
76 message="${md5} *${archiveName}"
77 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/>
78 <echo
79 message="${md5}"
80 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/>
81 </target>
82</project>