blob: 28ede421fe98fdc698def8e29eaf9eeac666b877 [file] [log] [blame]
david_williams0ce20322011-02-19 23:21:48 +00001<?xml version="1.0" encoding="UTF-8"?>
david_williams403beae2007-12-09 02:10:40 +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"/>
david_williams948bf552007-02-26 05:17:22 +00007
david_williams2398e362011-03-05 02:45:39 +00008 <property environment="env"/>
david_williams948bf552007-02-26 05:17:22 +00009
david_williams03ad9ec2008-11-04 05:33:02 +000010 <!-- required to get proper value of doCreateFprojZips -->
11 <property
12 name="keyCfgFile"
13 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
14 <echo
david_williams0ce20322011-02-19 23:21:48 +000015 level="info"
david_williams03ad9ec2008-11-04 05:33:02 +000016 message="keyCfgFile: ${keyCfgFile}"/>
david_williams2398e362011-03-05 02:45:39 +000017 <property file="${keyCfgFile}"/>
david_williams948bf552007-02-26 05:17:22 +000018
david_williams2398e362011-03-05 02:45:39 +000019 <echo message="transformedRepoLocation: ${transformedRepoLocation}"/>
20 <mkdir dir="${transformedRepoLocation}"/>
david_williams0ce20322011-02-19 23:21:48 +000021
22
david_williams03ad9ec2008-11-04 05:33:02 +000023 <!-- main -->
david_williams403beae2007-12-09 02:10:40 +000024 <target
25 name="build"
26 depends="getBaseBuilder">
david_williams0ce20322011-02-19 23:21:48 +000027
david_williams403beae2007-12-09 02:10:40 +000028 <property
29 name="buildTargets"
david_williams7e568c72010-09-12 09:04:15 +000030 value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
david_williams948bf552007-02-26 05:17:22 +000031
david_williams2398e362011-03-05 02:45:39 +000032 <ant antfile="${wtp.builder.home}/scripts/build/label.xml"/>
david_williams0ce20322011-02-19 23:21:48 +000033
david_williams03ad9ec2008-11-04 05:33:02 +000034 <property
35 name="dependency.properties"
david_williamsf46c7712010-08-08 01:58:59 +000036 value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
david_williams03ad9ec2008-11-04 05:33:02 +000037
david_williams03ad9ec2008-11-04 05:33:02 +000038
39 <echo
david_williams14cadd12011-03-23 06:43:39 +000040 level="debug"
david_williams03ad9ec2008-11-04 05:33:02 +000041 message="invoking buildTargets: ${buildTargets} to build for each component"/>
42
david_williams948bf552007-02-26 05:17:22 +000043
david_williams2398e362011-03-05 02:45:39 +000044 <ant antfile="${buildTargets}">
david_williams403beae2007-12-09 02:10:40 +000045 <property
46 name="component"
david_williams7e568c72010-09-12 09:04:15 +000047 value="wtp-buildTools"/>
david_williams948bf552007-02-26 05:17:22 +000048 </ant>
49
david_williams7390ea62012-03-17 21:24:52 +000050 <!-- we fail for compilation problems only at end, so everything gets a chance to try
51 and compile -->
52 <ant antfile="${wtp.builder.home}/scripts/build/checkForCompilationProblems.xml"/>
53
54 <!--
55 copy early, before tests, packaging, etc., both for early look, and
56 to make sure we don't lose what we have, if there is a subsequent build failure.
57 -->
david_williams2398e362011-03-05 02:45:39 +000058 <ant antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
david_williamsdd145262011-02-20 00:21:16 +000059
david_williams7390ea62012-03-17 21:24:52 +000060
david_williams948bf552007-02-26 05:17:22 +000061
david_williams948bf552007-02-26 05:17:22 +000062 </target>
63
david_williamsdd145262011-02-20 00:21:16 +000064
david_williams9e7f5842011-03-06 03:32:03 +000065
david_williamsef62fc42011-03-18 02:33:39 +000066 <!-- invoking runbuild.xml targetting getBaseBuilder -->
david_williamsdd145262011-02-20 00:21:16 +000067 <target
david_williams7390ea62012-03-17 21:24:52 +000068 name="getBaseBuilder"
69 if="eclipse.builder.fetch">
david_williamsef62fc42011-03-18 02:33:39 +000070
david_williams403beae2007-12-09 02:10:40 +000071 <ant
david_williamsef62fc42011-03-18 02:33:39 +000072 antfile="${wtp.builder.home}/scripts/build/runbuild.xml"
david_williams7e568c72010-09-12 09:04:15 +000073 target="getBaseBuilder"/>
david_williamsef62fc42011-03-18 02:33:39 +000074
david_williams948bf552007-02-26 05:17:22 +000075 </target>
76
77
david_williamsdd145262011-02-20 00:21:16 +000078
79</project>