blob: e0252c1ab6085c9ced615bbbaa8bb3d349fe0eb5 [file] [log] [blame]
david_williams7e568c72010-09-12 09:04:15 +00001<project
2 default="fixzips"
3 basedir=".">
4 <target
5 name="fixzips">
6 <property
7 name="buildDirectory"
8 value="/shared/webtools/committers/wtp-R3.0-R/20080616152118"/>
9 <property
10 name="buildLabel"
11 value="R-3.0-20080616152118"/>
12 <antcall
13 target="fixzip">
14 <param
15 name="newarchiveName"
16 value="wtp-sdk-noop-R-3.0-20080616152118a.zip"/>
17 <param
18 name="archiveName"
19 value="wtp-sdk-noop-R-3.0-20080616152118ORIG.zip"/>
20 </antcall>
21 </target>
22 <target
23 name="fixzip">
24 <zip
25 destfile="${buildDirectory}/${buildLabel}/${newarchiveName}">
26 <zipfileset
27 src="${buildDirectory}/${buildLabel}/${archiveName}"
28 excludes="eclipse/features/org.eclipse.jpt.sdk*/**,eclipse/features/org.eclipse.jst.jsf.apache.trinidad.tagsupport*/**"/>
29 </zip>
30 <antcall
31 target="createChecksums">
32 <param
33 name="archiveName"
34 value="${newarchiveName}"/>
35 </antcall>
36 </target>
37 <target
38 name="createChecksums">
david_williamsabdbb992008-06-20 22:01:59 +000039 <!-- This createChecksums task creates two files, for use in two contexts.
40 a. an x.md5 file, that has the name of the file in the contents.
41 This is good for some "third party" executables, like md5summ, that
42 expects the name in the file.
43 b. since ant does not deal well with md5 files with anything in them
44 other than the checksum, we provide same thing in a file with
45 an md5antformat extension, that has only the checksum.
46 -->
david_williams7e568c72010-09-12 09:04:15 +000047 <mkdir
48 dir="${buildDirectory}/${buildLabel}/checksum"/>
49 <checksum
50 file="${buildDirectory}/${buildLabel}/${archiveName}"
51 property="md5"/>
52 <echo
53 message="${md5} *${archiveName}"
54 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/>
55 <echo
56 message="${md5}"
57 file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/>
58 </target>
david_williamsabdbb992008-06-20 22:01:59 +000059</project>