blob: 6b1cf0de7c0620c3bde8330de623bdfc3b829ddf [file] [log] [blame]
david_williamse1839da2009-10-28 04:59:09 +00001<project
2 default="fixzips"
3 basedir=".">
david_williams2398e362011-03-05 02:45:39 +00004 <target name="fixzips">
david_williamse1839da2009-10-28 04:59:09 +00005 <property
6 name="buildDirectory"
7 value="/shared/webtools/committers/wtp-R3.0-R/20080616152118"/>
8 <property
9 name="buildLabel"
10 value="R-3.0-20080616152118"/>
david_williams2398e362011-03-05 02:45:39 +000011 <antcall target="fixzip">
david_williamse1839da2009-10-28 04:59:09 +000012 <param
13 name="newarchiveName"
14 value="wtp-jpt-sdk-R-3.0-20080616152118.zip"/>
15 <param
16 name="archiveName"
17 value="wtp-jpt-sdk-R-3.0-20080616152118ORIG.zip"/>
18 </antcall>
david_williams2398e362011-03-05 02:45:39 +000019 <antcall target="fixzip">
david_williamse1839da2009-10-28 04:59:09 +000020 <param
21 name="newarchiveName"
22 value="wtp-sdk-noop-R-3.0-20080616152118.zip"/>
23 <param
24 name="archiveName"
25 value="wtp-sdk-noop-R-3.0-20080616152118ORIG.zip"/>
26 </antcall>
david_williams2398e362011-03-05 02:45:39 +000027 <antcall target="fixzip">
david_williamse1839da2009-10-28 04:59:09 +000028 <param
29 name="newarchiveName"
30 value="wtp-sdk-R-3.0-20080616152118.zip"/>
31 <param
32 name="archiveName"
33 value="wtp-sdk-R-3.0-20080616152118ORIG.zip"/>
34 </antcall>
35 </target>
david_williams2398e362011-03-05 02:45:39 +000036 <target name="fixzip">
37 <zip destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
david_williamse1839da2009-10-28 04:59:09 +000038 <zipfileset
39 src="${buildDirectory}/${buildLabel}/${archiveName}"
40 excludes="eclipse/features/org.eclipse.jpt.sdk*/**"/>
41 </zip>
david_williams2398e362011-03-05 02:45:39 +000042 <antcall target="createChecksums">
david_williamse1839da2009-10-28 04:59:09 +000043 <param
44 name="archiveName"
45 value="${newarchiveName}"/>
46 </antcall>
47 </target>
david_williams2398e362011-03-05 02:45:39 +000048 <target name="createChecksums">
david_williamse1839da2009-10-28 04:59:09 +000049 <!--
50 This createChecksums task creates two files, for use in two
51 contexts. a. an x.md5 file, that has the name of the file in
52 the contents. This is good for some "third party"
53 executables, like md5summ, that expects the name in the
54 file. b. since ant does not deal well with md5 files with
55 anything in them other than the checksum, we provide same
56 thing in a file with an md5antformat extension, that has
57 only the checksum.
58 -->
david_williams2398e362011-03-05 02:45:39 +000059 <mkdir dir="${buildDirectory}/${buildLabel}/checksum"/>
david_williamse1839da2009-10-28 04:59:09 +000060 <checksum
61 file="${buildDirectory}/${buildLabel}/${archiveName}"
62 property="md5"/>
63 <echo
64 message="${md5} *${archiveName}"
65 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/>
66 <echo
67 message="${md5}"
68 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/>
69 </target>
david_williams45f86122008-06-20 15:24:34 +000070</project>