david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 2 | <project |
| 3 | name="runbuild" |
| 4 | default="runbuild" |
| 5 | basedir="."> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 6 | |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 7 | <!-- = = = standard properties pattern = = = --> |
| 8 | <!-- |
| 9 | Note to be cross-platform, "environment variables" are only |
| 10 | appropriate for some variables, e.g. ones we set, since |
| 11 | properties are case sensitive, even if the environment variables |
| 12 | on your operating system are not, e.g. it will be ${env.Path} |
| 13 | not ${env.PATH} on Windows |
david_williams | 9505a3e | 2007-06-29 23:42:47 +0000 | [diff] [blame] | 14 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 15 | <property |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 16 | environment="env"/> |
| 17 | <!-- |
| 18 | Let users override standard properties, if desired. If |
| 19 | directory, file, or some properties do not exist, then standard |
| 20 | properties will be used. |
| 21 | --> |
| 22 | <property |
| 23 | file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 24 | |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 25 | <!-- = = = end standard properties pattern = = = --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 26 | <fail |
| 27 | unless="env.BUILD_HOME" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 28 | message="all scripts need a BUILD_HOME"/> |
david_williams | 64af2d5 | 2010-03-31 06:11:08 +0000 | [diff] [blame] | 29 | |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 30 | <property |
| 31 | name="keyCfgFile" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 32 | value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 33 | <echo |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 34 | level="debug" |
| 35 | message="keyCfgFile: ${keyCfgFile}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 36 | <property |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 37 | file="${keyCfgFile}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 38 | <fail |
| 39 | unless="builderVersion" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 40 | message="Could not get builderVersion. Probably could not checkout build.cfg?"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 41 | <fail |
| 42 | unless="eclipse.builder.version" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 43 | message="Could not get eclipse.builder.version. Perhaps an old format build.cfg?"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 44 | <property |
| 45 | name="basebuilder.path" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 46 | value="${env.BASE_BUILDERS}/${eclipse.builder.version}"/> |
david_williams | 64af2d5 | 2010-03-31 06:11:08 +0000 | [diff] [blame] | 47 | <echo |
| 48 | level="info" |
| 49 | message="buildDirectory: ${buildDirectory}"/> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 50 | <!-- |
| 51 | if not explicitly set by caller, we'll assume we should fail |
| 52 | here on errors. In some cases, such as JUnit test compiles, or |
| 53 | even leaf components, the caller may want to set to false, so |
| 54 | that some part of the build is still made available |
| 55 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 56 | <property |
| 57 | name="eclipseBuildFailOnError" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 58 | value="true"/> |
david_williams | 455e7b0 | 2009-05-04 06:19:35 +0000 | [diff] [blame] | 59 | <!-- |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 60 | We should not always normalize ("-repack") jars by default, |
| 61 | since in production we sign the jars (which does the -repack for |
| 62 | us) and not in production we don't really care so why spend the |
| 63 | extra time. For jars which are not supposed to be normalized, |
| 64 | such as pre-existing jars, they need to be added to the |
| 65 | pack.properties file (see the updatePackProperties task). Note: |
| 66 | signing does the -repack when we sign. This can be over-ridden |
| 67 | by the caller setting normalize to true, but there are know |
| 68 | known cases where we want to normalize (and eventually pack) the |
| 69 | jar files but not sign them. |
david_williams | 455e7b0 | 2009-05-04 06:19:35 +0000 | [diff] [blame] | 70 | --> |
| 71 | <property |
| 72 | name="normalizeJarFiles" |
| 73 | value="false"/> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 74 | |
| 75 | <!-- main --> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 76 | <target |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 77 | name="runbuild"> |
| 78 | <dirname |
| 79 | file="${ant.file}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 80 | property="scripts.build.dir"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 81 | <property |
| 82 | name="wtp.builder.home" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 83 | value="${scripts.build.dir}/../../.."/> |
david_williams | 1e71b28 | 2008-03-10 10:12:40 +0000 | [diff] [blame] | 84 | |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 85 | <!-- invoke runEclipseBuild to build --> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 86 | <antcall |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 87 | target="runEclipseBuild"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 88 | </target> |
| 89 | <target |
| 90 | name="build" |
david_williams | b0d8e73 | 2009-05-20 05:40:43 +0000 | [diff] [blame] | 91 | depends="init" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 92 | if="doBuild"> |
| 93 | <!-- |
| 94 | this property required as of Eclipse 3.0 stream builds > |
| 95 | 20031126 |
| 96 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 97 | <property |
| 98 | name="buildingOSGi" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 99 | value="true"/> |
| 100 | <!-- |
| 101 | this generateFeatureVersionSuffix property causes feature |
| 102 | suffixes to be calcuated based on their own CVS tag, plus |
| 103 | the qualifier of their contained plugins |
| 104 | --> |
| 105 | <!-- |
| 106 | https://bugs.eclipse.org/bugs/show_bug.cgi?id=138825 false |
| 107 | for builds intended for 3.1.2, since can generate |
| 108 | underscores true for builds instended for 3.2 |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 109 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 110 | <property |
| 111 | name="generateFeatureVersionSuffix" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 112 | value="true"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 113 | <property |
| 114 | name="outputUpdateJars" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 115 | value="true"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 116 | <property |
| 117 | name="runPackager" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 118 | value="true"/> |
david_williams | 52d0fc0 | 2007-05-06 06:08:38 +0000 | [diff] [blame] | 119 | |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 120 | <!--run the build for the specified component--> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 121 | <echo |
| 122 | level="debug" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 123 | message="basedir: ${basedir}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 124 | <echo |
| 125 | level="debug" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 126 | message="component: ${component}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 127 | <echo |
| 128 | level="debug" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 129 | message="buildDirectory: ${buildDirectory}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 130 | <echo |
| 131 | level="debug" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 132 | message="wtp.builder.home: ${wtp.builder.home}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 133 | <echo |
| 134 | level="debug" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 135 | message="buildBranch: ${buildBranch}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 136 | <fail |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 137 | unless="buildBranch"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 138 | <ant |
| 139 | antfile="build.xml" |
| 140 | dir="${pde.build.scripts}"> |
| 141 | <property |
| 142 | name="builder" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 143 | value="${wtp.builder.home}/components/${component}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 144 | <property |
| 145 | name="wtp.builder.home" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 146 | value="${wtp.builder.home}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 147 | <property |
| 148 | name="buildBranch" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 149 | value="${buildBranch}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 150 | <property |
| 151 | name="dependencyTargets" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 152 | value="${wtp.builder.home}/scripts/dependency/build.xml"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 153 | <property |
| 154 | name="local.cache.dir" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 155 | value="${env.LOCAL_PREREQS_CACHE}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 156 | <property |
| 157 | name="baseLocation" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 158 | value="${env.PROJECT_PROJECTS}/${projectname}/eclipse"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 159 | <property |
| 160 | name="buildRoot" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 161 | value="${env.PROJECT_PROJECTS}/${projectname}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 162 | <property |
| 163 | name="testRoot" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 164 | value="${env.PROJECT_TESTS}/${projectname}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 165 | </ant> |
| 166 | </target> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 167 | |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 168 | <!-- check if PDE basebuilder and WTP builder is present --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 169 | <target |
| 170 | name="checkBaseBuilder" |
| 171 | depends="checkWTPBaseBuilder"> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 172 | <!-- |
| 173 | we just check if both base, and our wtp specific one are |
| 174 | current, if either is not, we'll get them both |
| 175 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 176 | <condition |
| 177 | property="basebuilderlocal"> |
| 178 | <and> |
| 179 | <available |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 180 | file="${pde.builder.path}"/> |
| 181 | <!-- |
| 182 | should we check explicitly for "true" instead of |
| 183 | just isset? either should work for this case, but |
| 184 | which is better ant style? |
| 185 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 186 | <isset |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 187 | property="wtpBuilderPresent"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 188 | </and> |
| 189 | </condition> |
| 190 | <echo |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 191 | message="basebuilderlocal: ${basebuilderlocal}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 192 | <echo |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 193 | message="wtpBuilderPresent: ${wtpBuilderPresent}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 194 | </target> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 195 | <!-- |
| 196 | 1)init -> set buildBranch, and create label.properties |
| 197 | 2)checkBaseBuilder -> check is baseBuilder exists, if not |
| 198 | retrieve from CVS org.eclipse.releg.basebuilder 3)invoke |
| 199 | getWTPBaseBuilder -> checks if |
| 200 | org.eclipse.wtp.releng.tools_version.jar exist, if not download |
| 201 | from WTP build site |
| 202 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 203 | <target |
| 204 | name="getBaseBuilder" |
| 205 | depends="init,checkBaseBuilder" |
| 206 | unless="basebuilderlocal"> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 207 | <!-- *** change the repo info --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 208 | <property |
| 209 | name="builderCvsRoot" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 210 | value=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse"/> |
| 211 | <!-- |
| 212 | note: untagged or some default version of base builder is |
| 213 | not good to use. in some cases, won't run at all, in the |
| 214 | best of cases, will simply be unstable, so we'll fail if we |
| 215 | forgot to specify it |
| 216 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 217 | <fail |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 218 | unless="eclipse.builder.version"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 219 | <mkdir |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 220 | dir="${env.BASE_BUILDERS}/${eclipse.builder.version}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 221 | <cvs |
| 222 | quiet="${env.CVS_QUIET}" |
| 223 | reallyquiet="${env.CVS_REALLY_QUIET}" |
| 224 | cvsRoot="${builderCvsRoot}" |
| 225 | package="${eclipse.builder}" |
| 226 | dest="${basebuilder.path}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 227 | tag="${eclipse.builder.version}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 228 | <fail |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 229 | unless="wtpBuildTools.url"/> |
| 230 | |
| 231 | <!-- now add our WTP base builder if not there --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 232 | <antcall |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 233 | target="getWTPBaseBuilder"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 234 | </target> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 235 | <!-- |
| 236 | check wtpBulderPresent property if false, download WTP builder |
| 237 | file org.eclipse.wtp.releng.tools_version.jar into baseBuiders |
| 238 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 239 | <target |
| 240 | name="getWTPBaseBuilder" |
| 241 | depends="checkWTPBaseBuilder" |
| 242 | unless="wtpBuilderPresent"> |
| 243 | <get |
| 244 | dest="${basebuilder.path}/org.eclipse.releng.basebuilder/plugins/${wtpBuildTools.file}" |
| 245 | src="${wtpBuildTools.url}/${wtpBuildTools.file}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 246 | usetimestamp="true"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 247 | </target> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 248 | <!-- |
| 249 | check if WTP builder exists |
| 250 | org.eclipse.wtp.releng.tools_version.jar exist in basebuilder |
| 251 | set wtpBuilderPresent property |
| 252 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 253 | <target |
| 254 | name="checkWTPBaseBuilder"> |
| 255 | <condition |
| 256 | property="wtpBuilderPresent"> |
| 257 | <available |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 258 | file="${basebuilder.path}/org.eclipse.releng.basebuilder/plugins/${wtpBuildTools.file}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 259 | </condition> |
| 260 | </target> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 261 | |
| 262 | <!-- set buildBranch, and create label.properties--> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 263 | <target |
| 264 | name="init"> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 265 | <condition |
| 266 | property="buildBranch" |
| 267 | value="R3.0.1"> |
| 268 | <equals |
| 269 | arg1="${mapVersionTag}" |
| 270 | arg2="R3_0_1_patches"/> |
| 271 | </condition> |
| 272 | <condition |
| 273 | property="buildBranch" |
| 274 | value="R3.1"> |
| 275 | <equals |
| 276 | arg1="${mapVersionTag}" |
| 277 | arg2="HEAD"/> |
| 278 | </condition> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 279 | <condition |
| 280 | property="buildBranch" |
| 281 | value="R3.0"> |
| 282 | <equals |
| 283 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 284 | arg2="R3_0_maintenance"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 285 | </condition> |
| 286 | <condition |
| 287 | property="buildBranch" |
| 288 | value="R0.7"> |
| 289 | <equals |
| 290 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 291 | arg2="R0_7_maintenance"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 292 | </condition> |
| 293 | <condition |
| 294 | property="buildBranch" |
| 295 | value="R1.0"> |
| 296 | <equals |
| 297 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 298 | arg2="R1_0_maintenance"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 299 | </condition> |
| 300 | <condition |
| 301 | property="buildBranch" |
| 302 | value="R1.5"> |
| 303 | <equals |
| 304 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 305 | arg2="R1_5_maintenance"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 306 | </condition> |
| 307 | <condition |
| 308 | property="buildBranch" |
david_williams | 6706cfb | 2008-03-08 06:57:25 +0000 | [diff] [blame] | 309 | value="R1.5.5"> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 310 | <equals |
| 311 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 312 | arg2="R1_5_5_patches"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 313 | </condition> |
| 314 | <condition |
| 315 | property="buildBranch" |
| 316 | value="R2.0"> |
| 317 | <equals |
| 318 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 319 | arg2="R2_0_maintenance"/> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 320 | </condition> |
| 321 | <condition |
| 322 | property="buildBranch" |
| 323 | value="R2.0.2"> |
| 324 | <equals |
| 325 | arg1="${mapVersionTag}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 326 | arg2="R2_0_2_patches"/> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 327 | </condition> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 328 | <!-- if not set above, assume R3.0 --> |
| 329 | <!-- this happens, for example, when using a "tempTest" branch --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 330 | <property |
| 331 | name="buildBranch" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 332 | value="R3.1"/> |
| 333 | <!-- |
| 334 | strip trailing blanks. Seems either Eclipse, or CVS make it |
| 335 | hard to not have trailing spaces |
| 336 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 337 | <replaceregexp |
| 338 | flags="gm" |
| 339 | file="${wtp.builder.home}/build.properties" |
| 340 | match=" *$" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 341 | replace=""/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 342 | <property |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 343 | file="${wtp.builder.home}/build.properties"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 344 | <ant |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 345 | antfile="${wtp.builder.home}/scripts/build/label.xml"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 346 | <property |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 347 | file="${buildDirectory}/label.properties"/> |
| 348 | <!-- |
| 349 | fetch the HEAD stream of all projects if build type |
| 350 | specified as N |
| 351 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 352 | <condition |
| 353 | property="fetchTag" |
| 354 | value="HEAD"> |
| 355 | <equals |
| 356 | arg1="${buildType}" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 357 | arg2="N"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 358 | </condition> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 359 | <!-- |
| 360 | exit if the component directory doesn't exist (for example, |
| 361 | may not always be an "sdk" component, but we often generate |
| 362 | calls to it) |
| 363 | --> |
| 364 | <condition |
| 365 | property="doBuild"> |
| 366 | <available |
| 367 | file="${wtp.builder.home}/components/${component}" |
| 368 | type="dir"/> |
| 369 | </condition> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 370 | </target> |
| 371 | <target |
| 372 | name="runEclipseBuild" |
| 373 | if="buildId"> |
| 374 | <fail |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 375 | unless="eclipse.builder.version"/> |
| 376 | <fail |
| 377 | message="dependency.properties must be specified by distribution script" |
| 378 | unless="dependency.properties"/> |
| 379 | <!-- |
| 380 | if not otherwise set "externally", set the classpath jars |
| 381 | for the Execution Envirnonments we need in WTP. And other |
| 382 | parameters we need set. To successfully do local builds, |
| 383 | most of these do have to be provided externally, such as in |
| 384 | "localbuildproperties" directory |
| 385 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 386 | <property |
| 387 | name="J2SE-1.4" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 388 | value="${env.JAVA_4_HOME}/jre/lib/core.jar:${env.JAVA_4_HOME}/jre/lib/xml.jar:${env.JAVA_4_HOME}/jre/lib/graphics.jar:${env.JAVA_4_HOME}/jre/lib/server.jar:${env.JAVA_4_HOME}/jre/lib/ibmorbapi.jar:${env.JAVA_4_HOME}/jre/lib/security.jar:${env.JAVA_4_HOME}/jre/lib/ibmpkcs.jar:${env.JAVA_4_HOME}/jre/lib/ibmjcefw.jar"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 389 | <property |
| 390 | name="J2SE-1.5" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 391 | value="${env.JAVA_5_HOME}/jre/lib/core.jar:${env.JAVA_5_HOME}/jre/lib/vm.jar:${env.JAVA_5_HOME}/jre/lib/xml.jar:${env.JAVA_5_HOME}/jre/lib/graphics.jar:${env.JAVA_5_HOME}/jre/lib/server.jar:${env.JAVA_5_HOME}/jre/lib/ibmorbapi.jar:${env.JAVA_5_HOME}/jre/lib/security.jar:${env.JAVA_4_HOME}/jre/lib/ibmpkcs.jar:${env.JAVA_5_HOME}/jre/lib/ibmjcefw.jar"/> |
david_williams | 7cad582 | 2008-09-20 02:46:54 +0000 | [diff] [blame] | 392 | <property |
david_williams | e2d1519 | 2008-09-22 04:54:32 +0000 | [diff] [blame] | 393 | name="JavaSE-1.6" |
david_williams | 3b0bfb7 | 2010-03-10 01:11:19 +0000 | [diff] [blame] | 394 | value="${env.JAVA_6_HOME}/jre/lib/rt.jar:${env.JAVA_6_HOME}/jre/lib/vm.jar:${env.JAVA_6_HOME}/jre/lib/xml.jar:${env.JAVA_6_HOME}/jre/lib/graphics.jar:${env.JAVA_6_HOME}/jre/lib/server.jar:${env.JAVA_6_HOME}/jre/lib/ibmorbapi.jar:${env.JAVA_6_HOME}/jre/lib/security.jar:${env.JAVA_4_HOME}/jre/lib/ibmpkcs.jar:${env.JAVA_6_HOME}/jre/lib/ibmjcefw.jar"/> |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 395 | <!-- |
| 396 | local builds must set build.donottagmaps to true, in |
| 397 | runbuild.properties, to avoid erroneous time stamps |
| 398 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 399 | <property |
david_williams | 7d822c8 | 2008-02-24 04:27:41 +0000 | [diff] [blame] | 400 | name="build.donottagmaps" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 401 | value="false"/> |
| 402 | <fail |
david_williams | e2d1519 | 2008-09-22 04:54:32 +0000 | [diff] [blame] | 403 | unless="JavaSE-1.6" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 404 | message="classpath to JavaSE-1.6 Execution Environment must be set"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 405 | <fail |
| 406 | unless="J2SE-1.5" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 407 | message="classpath to J2SE-1.5 Execution Environment must be set"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 408 | <fail |
| 409 | unless="J2SE-1.4" |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 410 | message="classpath to J2SE-1.4 Execution Environment must be set"/> |
| 411 | <!-- |
| 412 | we read these in as ant properties, so in java call below, |
| 413 | we convert them to system (environment) properties, which is |
| 414 | where PDE expects to find them |
| 415 | --> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 416 | <echo |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 417 | message="JavaSE-1.6=${JavaSE-1.6}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 418 | <echo |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 419 | message="J2SE-1.5=${J2SE-1.5}"/> |
| 420 | <echo |
| 421 | message="J2SE-1.4=${J2SE-1.4}"/> |
| 422 | <mkdir |
| 423 | dir="${buildDirectory}/${buildLabel}"/> |
david_williams | b6fcc88 | 2009-11-21 19:59:27 +0000 | [diff] [blame] | 424 | <mkdir |
david_williams | 9e53379 | 2009-11-21 20:06:28 +0000 | [diff] [blame] | 425 | dir="${buildDirectory}/${buildLabel}/buildworkspaces"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 426 | <java |
| 427 | taskname="build-${build.distribution}-${component}" |
| 428 | jar="${eclipse.launcher}" |
| 429 | fork="true" |
| 430 | failonerror="${eclipseBuildFailOnError}"> |
| 431 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 432 | value="-Djava.protocol.handler.pkgs=com.ibm.etools.www.protocol"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 433 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 434 | value="-DurlLogLocation=${buildDirectory}/${buildLabel}/outgoinghttplogfromcodebuild.log"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 435 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 436 | value="-Dosgi.ws=${env.BASEWS}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 437 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 438 | value="-Dosgi.os=${env.BASEOS}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 439 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 440 | value="-Dosgi.arch=${env.BASEARCH}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 441 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 442 | value="-Dbuild.home=${env.BUILD_HOME}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 443 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 444 | value="-DJAVA_6_HOME=${env.JAVA_6_HOME}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 445 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 446 | value="-DJAVA_5_HOME=${env.JAVA_5_HOME}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 447 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 448 | value="-DJAVA_4_HOME=${env.JAVA_4_HOME}"/> |
david_williams | 7cad582 | 2008-09-20 02:46:54 +0000 | [diff] [blame] | 449 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 450 | value="-DJavaSE-1.6=${JavaSE-1.6}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 451 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 452 | value="-DJ2SE-1.5=${J2SE-1.5}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 453 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 454 | value="-DJ2SE-1.4=${J2SE-1.4}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 455 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 456 | value="-Dbuild.donottagmaps=${build.donottagmaps}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 457 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 458 | value="-DbuildType=${buildType}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 459 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 460 | value="-DbuildId=${buildId}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 461 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 462 | value="-DmapVersionTag=${mapVersionTag}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 463 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 464 | value="-Declipse.builder.version=${eclipse.builder.version}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 465 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 466 | value="-Declipse.builder=${eclipse.builder}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 467 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 468 | value="-Dprojectname=${projectname}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 469 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 470 | value="-DbuildLabel=${buildLabel}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 471 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 472 | value="-Dreleng.jsf-mapVersionTag=${releng.jsf-mapVersionTag}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 473 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 474 | value="-Dreleng.dali-mapVersionTag=${releng.dali-mapVersionTag}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 475 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 476 | value="-Dwtp.builder.home=${wtp.builder.home}"/> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 477 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 478 | value="-Dbuild.distribution=${build.distribution}"/> |
david_williams | 11f4fa3 | 2008-05-10 09:32:45 +0000 | [diff] [blame] | 479 | <jvmarg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 480 | value="-Dcomponent=${component}"/> |
| 481 | <jvmarg |
| 482 | value="-Ddependency.properties=${dependency.properties}"/> |
| 483 | <jvmarg |
| 484 | value="-DwtpBuildTools.file=${wtpBuildTools.file}"/> |
| 485 | <jvmarg |
| 486 | value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/> |
| 487 | <jvmarg |
| 488 | value="-DSKIP_JAR_SIGNING=${SKIP_JAR_SIGNING}"/> |
| 489 | <jvmarg |
| 490 | value="-DnormalizeJarFiles=${normalizeJarFiles}"/> |
| 491 | <jvmarg |
david_williams | 9e53379 | 2009-11-21 20:06:28 +0000 | [diff] [blame] | 492 | value="-Dosgi.instance.area=${buildDirectory}/${buildLabel}/buildworkspaces/workspace-runbuild-${component}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 493 | <arg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 494 | value="-application"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 495 | <arg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 496 | value="org.eclipse.ant.core.antRunner"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 497 | <arg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 498 | value="-buildfile"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 499 | <arg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 500 | value="${ant.file}"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 501 | <arg |
david_williams | ab8b608 | 2009-11-21 19:28:32 +0000 | [diff] [blame] | 502 | value="build"/> |
david_williams | 2171a5b | 2008-02-10 08:15:08 +0000 | [diff] [blame] | 503 | </java> |
| 504 | </target> |
| 505 | </project> |