blob: 3afe63752b533892fc74393e560500f1172ab288 [file] [log] [blame]
david_williams12def432010-08-09 04:42:21 +00001<?xml version="1.0" encoding="UTF-8"?>
nickboldt03a6f082019-02-12 15:17:11 -05002<!--
3 Copyright (c) 2010, 2019 IBM Corporation and others.
4 This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License 2.0
6 which accompanies this distribution, and is available at
7 https://www.eclipse.org/legal/epl-2.0/
8
9 SPDX-License-Identifier: EPL-2.0
10
11 Contributors:
12 IBM Corporation - initial API and implementation
13 -->
14
david_williams12def432010-08-09 04:42:21 +000015<project
16 default="build"
17 basedir=".">
david_williams2398e362011-03-05 02:45:39 +000018 <fail unless="wtp.builder.home"/>
19 <property file="${wtp.builder.home}/build.properties"/>
20 <property environment="env"/>
david_williams12def432010-08-09 04:42:21 +000021
22 <!-- required to get proper value of doCreateFprojZips -->
23 <property
24 name="keyCfgFile"
25 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
26 <echo
27 level="info"
28 message="keyCfgFile: ${keyCfgFile}"/>
david_williams2398e362011-03-05 02:45:39 +000029 <property file="${keyCfgFile}"/>
david_williams12def432010-08-09 04:42:21 +000030
david_williams2398e362011-03-05 02:45:39 +000031 <echo message="transformedRepoLocation: ${transformedRepoLocation}"/>
32 <mkdir dir="${transformedRepoLocation}"/>
david_williams12def432010-08-09 04:42:21 +000033
34
35 <!-- main -->
36 <target
37 name="build"
38 depends="getBaseBuilder">
david_williamsdbd6bfb2010-09-14 12:47:34 +000039
david_williams12def432010-08-09 04:42:21 +000040 <property
41 name="buildTargets"
42 value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
43
david_williams2398e362011-03-05 02:45:39 +000044 <ant antfile="${wtp.builder.home}/scripts/build/label.xml"/>
david_williamsc3660802011-02-13 05:29:58 +000045
david_williams12def432010-08-09 04:42:21 +000046 <property
47 name="dependency.properties"
48 value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
49
50
david_williams12def432010-08-09 04:42:21 +000051 <echo
david_williams14cadd12011-03-23 06:43:39 +000052 level="debug"
david_williams12def432010-08-09 04:42:21 +000053 message="invoking buildTargets: ${buildTargets} to build for each component"/>
david_williams2398e362011-03-05 02:45:39 +000054 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000055 <property
56 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000057 value="wst4x-sdk"/>
david_williams12def432010-08-09 04:42:21 +000058 </ant>
david_williamsba00a342011-03-12 05:11:19 +000059
david_williams2398e362011-03-05 02:45:39 +000060 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000061 <property
62 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000063 value="wst4x.tests"/>
david_williams12def432010-08-09 04:42:21 +000064 </ant>
david_williams2398e362011-03-05 02:45:39 +000065 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000066 <property
67 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000068 value="jst4x-sdk"/>
david_williams12def432010-08-09 04:42:21 +000069 </ant>
david_williams2398e362011-03-05 02:45:39 +000070 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000071 <property
72 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000073 value="jst4x.tests"/>
david_williams12def432010-08-09 04:42:21 +000074 </ant>
75
david_williams2398e362011-03-05 02:45:39 +000076 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000077 <property
78 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000079 value="dali4x-sdk"/>
david_williams12def432010-08-09 04:42:21 +000080 </ant>
81
82
david_williams2398e362011-03-05 02:45:39 +000083 <ant antfile="${buildTargets}">
david_williams12def432010-08-09 04:42:21 +000084 <property
85 name="component"
david_williams8fc1bb42011-02-14 04:43:11 +000086 value="dali4x.tests"/>
david_williams12def432010-08-09 04:42:21 +000087 </ant>
88
david_williams5e5f04f2011-03-07 20:07:42 +000089
90 <!-- we fail for compilation problems only at end, so everything gets a chance to try
91 and compile -->
92 <ant antfile="${wtp.builder.home}/scripts/build/checkForCompilationProblems.xml"/>
93
94 <!--
95 copy early, before tests, packaging, etc., both for early look, and
96 to make sure we don't lose what we have, if there is a subsequent build failure.
97 -->
david_williams2398e362011-03-05 02:45:39 +000098 <ant antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
david_williamsba00a342011-03-12 05:11:19 +000099
david_williams12def432010-08-09 04:42:21 +0000100
david_williamsc3660802011-02-13 05:29:58 +0000101
david_williams12def432010-08-09 04:42:21 +0000102 </target>
103
david_williams9e7f5842011-03-06 03:32:03 +0000104
david_williams12def432010-08-09 04:42:21 +0000105 <!-- invoking runbuild.xml targetting getBaseBuilder -->
106 <target
107 name="getBaseBuilder"
108 if="eclipse.builder.fetch">
david_williamsef62fc42011-03-18 02:33:39 +0000109
david_williams12def432010-08-09 04:42:21 +0000110 <ant
david_williamsef62fc42011-03-18 02:33:39 +0000111 antfile="${wtp.builder.home}/scripts/build/runbuild.xml"
david_williams12def432010-08-09 04:42:21 +0000112 target="getBaseBuilder"/>
113 </target>
david_williamsc3660802011-02-13 05:29:58 +0000114
115
116
117
david_williams12def432010-08-09 04:42:21 +0000118</project>