david_williams | e1839da | 2009-10-28 04:59:09 +0000 | [diff] [blame] | 1 | <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-jpt-sdk-R-3.0-20080616152118.zip"/> |
| 17 | <param |
| 18 | name="archiveName" |
| 19 | value="wtp-jpt-sdk-R-3.0-20080616152118ORIG.zip"/> |
| 20 | </antcall> |
| 21 | <antcall |
| 22 | target="fixzip"> |
| 23 | <param |
| 24 | name="newarchiveName" |
| 25 | value="wtp-sdk-noop-R-3.0-20080616152118.zip"/> |
| 26 | <param |
| 27 | name="archiveName" |
| 28 | value="wtp-sdk-noop-R-3.0-20080616152118ORIG.zip"/> |
| 29 | </antcall> |
| 30 | <antcall |
| 31 | target="fixzip"> |
| 32 | <param |
| 33 | name="newarchiveName" |
| 34 | value="wtp-sdk-R-3.0-20080616152118.zip"/> |
| 35 | <param |
| 36 | name="archiveName" |
| 37 | value="wtp-sdk-R-3.0-20080616152118ORIG.zip"/> |
| 38 | </antcall> |
| 39 | </target> |
| 40 | <target |
| 41 | name="fixzip"> |
| 42 | <zip |
| 43 | destfile="${buildDirectory}/${buildLabel}/${newarchiveName}"> |
| 44 | <zipfileset |
| 45 | src="${buildDirectory}/${buildLabel}/${archiveName}" |
| 46 | excludes="eclipse/features/org.eclipse.jpt.sdk*/**"/> |
| 47 | </zip> |
| 48 | <antcall |
| 49 | target="createChecksums"> |
| 50 | <param |
| 51 | name="archiveName" |
| 52 | value="${newarchiveName}"/> |
| 53 | </antcall> |
| 54 | </target> |
| 55 | <target |
| 56 | name="createChecksums"> |
| 57 | <!-- |
| 58 | This createChecksums task creates two files, for use in two |
| 59 | contexts. a. an x.md5 file, that has the name of the file in |
| 60 | the contents. This is good for some "third party" |
| 61 | executables, like md5summ, that expects the name in the |
| 62 | file. b. since ant does not deal well with md5 files with |
| 63 | anything in them other than the checksum, we provide same |
| 64 | thing in a file with an md5antformat extension, that has |
| 65 | only the checksum. |
| 66 | --> |
| 67 | <mkdir |
| 68 | dir="${buildDirectory}/${buildLabel}/checksum"/> |
| 69 | <checksum |
| 70 | file="${buildDirectory}/${buildLabel}/${archiveName}" |
| 71 | property="md5"/> |
| 72 | <echo |
| 73 | message="${md5} *${archiveName}" |
| 74 | file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5"/> |
| 75 | <echo |
| 76 | message="${md5}" |
| 77 | file="${buildDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat"/> |
| 78 | </target> |
david_williams | 45f8612 | 2008-06-20 15:24:34 +0000 | [diff] [blame] | 79 | </project> |