blob: 81bd5004b8f9f301c6a1f9200ffbc542358a0681 [file] [log] [blame]
david_williamsf9aba5f2010-08-22 21:08:36 +00001<?xml version="1.0" encoding="UTF-8"?>
david_williams0ecd8ec2009-11-09 04:16:21 +00002<project
3 default="build"
4 basedir=".">
david_williams2398e362011-03-05 02:45:39 +00005 <fail unless="wtp.builder.home"/>
6 <property file="${wtp.builder.home}/build.properties"/>
7 <property environment="env"/>
david_williamsf9aba5f2010-08-22 21:08:36 +00008
david_williams99caa012011-03-05 06:33:25 +00009 <!-- required to get proper value of doCreateFprojZips -->
david_williamsf9aba5f2010-08-22 21:08:36 +000010 <property
11 name="keyCfgFile"
12 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
13 <echo
14 level="info"
15 message="keyCfgFile: ${keyCfgFile}"/>
david_williams2398e362011-03-05 02:45:39 +000016 <property file="${keyCfgFile}"/>
david_williamsf9aba5f2010-08-22 21:08:36 +000017
david_williams2398e362011-03-05 02:45:39 +000018 <echo message="transformedRepoLocation: ${transformedRepoLocation}"/>
19 <mkdir dir="${transformedRepoLocation}"/>
david_williamsf9aba5f2010-08-22 21:08:36 +000020
21
david_williams99caa012011-03-05 06:33:25 +000022 <!-- main -->
david_williams0ecd8ec2009-11-09 04:16:21 +000023 <target
24 name="build"
25 depends="getBaseBuilder">
david_williams33f76202010-09-19 04:11:05 +000026
27 <echoproperties/>
28
david_williams0ecd8ec2009-11-09 04:16:21 +000029 <dirname
30 file="${ant.file}"
31 property="distribution.wtp.build.dir"/>
32 <property
33 name="buildTargets"
34 value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
david_williams2398e362011-03-05 02:45:39 +000035 <ant antfile="${wtp.builder.home}/scripts/build/label.xml"/>
david_williamsf9aba5f2010-08-22 21:08:36 +000036
david_williams0ecd8ec2009-11-09 04:16:21 +000037 <property
38 name="dependency.properties"
david_williamsf46c7712010-08-08 01:58:59 +000039 value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
david_williams0ecd8ec2009-11-09 04:16:21 +000040
david_williamse8bb4a82010-09-27 20:58:02 +000041
42 <echo
43 level="info"
44 message="invoking buildTargets: ${buildTargets} to build for each component"/>
david_williams2398e362011-03-05 02:45:39 +000045 <ant antfile="${buildTargets}">
david_williams0ecd8ec2009-11-09 04:16:21 +000046 <property
47 name="component"
david_williamsbfb163e2010-09-26 18:51:03 +000048 value="jsdt_sdk"/>
david_williams0ecd8ec2009-11-09 04:16:21 +000049 </ant>
david_williams99caa012011-03-05 06:33:25 +000050
david_williams2398e362011-03-05 02:45:39 +000051 <ant antfile="${buildTargets}">
david_williams0ecd8ec2009-11-09 04:16:21 +000052 <property
53 name="component"
david_williamsbfb163e2010-09-26 18:51:03 +000054 value="jsdt_tests"/>
david_williams0ecd8ec2009-11-09 04:16:21 +000055 </ant>
56
david_williams99caa012011-03-05 06:33:25 +000057 <!-- we fail for compilation problems only at end, so everything gets a chance to try
58 and compile -->
59 <ant antfile="${wtp.builder.home}/scripts/build/checkForCompilationProblems.xml"/>
david_williams33f76202010-09-19 04:11:05 +000060
david_williams2398e362011-03-05 02:45:39 +000061
david_williams33f76202010-09-19 04:11:05 +000062 </target>
david_williamsdc269912010-08-22 23:08:44 +000063
david_williams33f76202010-09-19 04:11:05 +000064
65
david_williams33f76202010-09-19 04:11:05 +000066
david_williams0ecd8ec2009-11-09 04:16:21 +000067 <!-- invoking runbuild.xml targetting getBaseBuilder -->
68 <target
69 name="getBaseBuilder"
70 if="eclipse.builder.fetch">
71 <dirname
72 file="${ant.file}"
73 property="wtbuilder.dir"/>
74 <property
75 name="buildTargets"
76 value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
77 <echo
78 level="info"
79 message="invoking buildTargets: ${buildTargets} -> getBaseBuilder"/>
80 <ant
81 antfile="${buildTargets}"
82 target="getBaseBuilder"/>
83 </target>
david_williams8994edf2010-09-26 03:49:34 +000084
david_williams99caa012011-03-05 06:33:25 +000085
86
david_williams0ecd8ec2009-11-09 04:16:21 +000087</project>