blob: 078de030db471e5d38447a20b4fde5eec468249d [file] [log] [blame]
david_williams58d71292009-11-02 01:22:42 +00001<?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 This script is to create some zips with core features only.
4 Limited, specialized usefulness, so they are not linked or
5 advertised. That is, could change at any time.
6 -->
7<project
8 default="build"
9 basedir=".">
david_williams9e7f5842011-03-06 03:32:03 +000010
david_williamsf0207862010-10-05 08:17:44 +000011
12 <!-- = = = standard properties pattern = = = -->
13 <!--
14 Note to be cross-platform, "environment variables" are only
15 appropriate for some variables, e.g. ones we set, since
16 properties are case sensitive, even if the environment variables
17 on your operating system are not, e.g. it will be ${env.Path}
18 not ${env.PATH} on Windows
19 -->
david_williams2398e362011-03-05 02:45:39 +000020 <property environment="env"/>
david_williamsf0207862010-10-05 08:17:44 +000021 <!--
22 Let users override standard properties, if desired. If
23 directory, file, or some properties do not exist, then standard
24 properties will be used.
25 -->
david_williams2398e362011-03-05 02:45:39 +000026 <property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
david_williamsf0207862010-10-05 08:17:44 +000027
28 <!-- = = = end standard properties pattern = = = -->
29
30
31
david_williams2398e362011-03-05 02:45:39 +000032 <fail unless="wtp.builder.home"/>
33 <property file="${wtp.builder.home}/build.properties"/>
david_williamsf0207862010-10-05 08:17:44 +000034
35
36 <!-- required to get proper value of branch specific values, for example,
37 baseComparatorRepoDir, since can vary from forward "integration" stream,
38 and "maintenance" branch -->
39 <property
40 name="keyCfgFile"
41 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
42 <echo
43 level="info"
44 message="keyCfgFile: ${keyCfgFile}"/>
david_williams2398e362011-03-05 02:45:39 +000045 <property file="${keyCfgFile}"/>
david_williamsf0207862010-10-05 08:17:44 +000046
47 <fail
48 unless="baseComparatorRepoDir"
49 message="baseComparatorRepoDir must be defined for this ant script"/>
50
51
52 <!-- if not otherwise set, use these default properties
53 <property
54 name="repoDownloadBaseURL"
55 value="http://build.eclipse.org/webtools/committers"/> -->
56 <property
57 name="repoDownloadBaseURL"
58 value=".."/>
59
david_williams2398e362011-03-05 02:45:39 +000060 <fail unless="env.PROJECT_PROJECTS"/>
61 <fail unless="projectname"/>
david_williamsf0207862010-10-05 08:17:44 +000062 <property
63 name="labelfile"
64 value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties"/>
65 <available
66 file="${labelfile}"
67 property="labelfileavailable"/>
david_williams2398e362011-03-05 02:45:39 +000068 <fail unless="labelfileavailable"/>
69 <property file="${labelfile}"/>
david_williams9e7f5842011-03-06 03:32:03 +000070
71
72
david_williams58d71292009-11-02 01:22:42 +000073 <!--
74 These properties are normally set by calling task, but for
75 "local" tests from command line, they can be set here
76 -->
77 <property
78 name="buildDirectory"
david_williamse8bb4a82010-09-27 20:58:02 +000079 value="/shared/webtools/committers/wtp-R3.2.0-I/20091029001529"/>
david_williams58d71292009-11-02 01:22:42 +000080 <property
81 name="buildLabel"
david_williamse8bb4a82010-09-27 20:58:02 +000082 value="I-3.2.0-20091029030635"/>
david_williams58d71292009-11-02 01:22:42 +000083 <property
84 name="wtp.builder.home"
david_williamse8bb4a82010-09-27 20:58:02 +000085 value="/shared/webtools/projectBuilders/wtp-R3.2.0-I/webtools.releng/releng.wtpbuilder"/>
david_williams2398e362011-03-05 02:45:39 +000086 <echo message="buildDirectory: ${buildDirectory}"/>
87 <echo message="buildLabel: ${buildLabel}"/>
88 <echo message="wtp.builder.home: ${wtp.builder.home}"/>
david_williams58d71292009-11-02 01:22:42 +000089 <!--
90 three convenience variables to help avoid typos, etc. Should
91 never need to be changed
92 -->
93 <property
94 name="tempDir"
95 value="${buildDirectory}/${buildLabel}/tempdir"/>
96 <property
97 name="tempRunnableEclipse"
98 value="${tempDir}/eclipse"/>
99 <property
100 name="tempRepo"
101 value="${buildDirectory}/${buildLabel}/temprepo"/>
david_williams2398e362011-03-05 02:45:39 +0000102 <target name="build">
103 <antcall target="createCodeZip">
david_williams58d71292009-11-02 01:22:42 +0000104 <param
105 name="newarchiveName"
david_williamse8bb4a82010-09-27 20:58:02 +0000106 value="${build.distribution}-${buildLabel}.zip"/>
david_williams58d71292009-11-02 01:22:42 +0000107 </antcall>
david_williams2398e362011-03-05 02:45:39 +0000108 <antcall target="createSDKZip">
david_williams58d71292009-11-02 01:22:42 +0000109 <param
110 name="newarchiveName"
david_williamse8bb4a82010-09-27 20:58:02 +0000111 value="${build.distribution}-sdk-${buildLabel}.zip"/>
david_williams58d71292009-11-02 01:22:42 +0000112 </antcall>
david_williams2398e362011-03-05 02:45:39 +0000113 <antcall target="createTestZip">
david_williams58d71292009-11-02 01:22:42 +0000114 <param
115 name="newarchiveName"
david_williamse8bb4a82010-09-27 20:58:02 +0000116 value="${build.distribution}-tests-${buildLabel}.zip"/>
david_williams58d71292009-11-02 01:22:42 +0000117 </antcall>
118 </target>
david_williams9e7f5842011-03-06 03:32:03 +0000119 <!--
120 Note: this was done as an import, since eventually there may be more than one ... differ by streams? There may be
121 better ways ... and may not be needed after all, since turning out to be pretty generic ... driven by "categories".
122 -->
david_williams2398e362011-03-05 02:45:39 +0000123 <import file="${wtp.builder.home}/distribution/${build.distribution}.package/createziptasks.xml"/>
david_williams58d71292009-11-02 01:22:42 +0000124</project>