blob: dd930a24d1d15720a29fead65bb3d2d12dafa6ed [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<!--
2 Copyright (c) 2010 Stephan Herrmann and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
7
8 Contributors:
9 Stephan Herrmann - initial API and implementation
10-->
11<project name="Build specific targets and properties" default="noDefault" >
12
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000013 <!-- ===================================================================== -->
14 <!-- Run a given ${target} on all elements being built -->
15 <!-- Add on <ant> task for each top level element being built. -->
16 <!-- ===================================================================== -->
Stephan Herrmann33c26042010-06-03 10:24:16 +000017 <available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml"/>
18 <property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml"/>
19
20 <import file="${allElementsFile}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000021 <target name="allElements">
Stephan Herrmann33c26042010-06-03 10:24:16 +000022 <antcall target="allElementsDelegator" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000023 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000024
Stephan Herrmann33c26042010-06-03 10:24:16 +000025 <!-- ===================================================================== -->
26 <!-- ===================================================================== -->
27 <target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
28 <get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" />
29 <unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" />
Stephan Herrmann691add92010-05-18 12:02:51 +000030 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000031
Stephan Herrmann33c26042010-06-03 10:24:16 +000032 <target name="checkLocalBase">
33 <available file="${base}" property="skipBase" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000034 </target>
35
36 <!-- ===================================================================== -->
37 <!-- Check out map files from correct repository -->
Stephan Herrmann33c26042010-06-03 10:24:16 +000038 <!-- Replace values for mapsCheckoutTag as desired. -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000039 <!-- ===================================================================== -->
Stephan Herrmann33c26042010-06-03 10:24:16 +000040 <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
41 <property name="mapsCheckoutTag" value="HEAD" />
42 <!-- orig:
43 <cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
44 -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000045
Stephan Herrmann357d42f2010-06-03 13:25:41 +000046 <mkdir dir="${buildDirectory}/maps"/>
Stephan Herrmannd8abd7a2012-04-12 22:08:50 +020047 <copy file="${map.file.path}" todir="${buildDirectory}/maps/" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000048 </target>
Stephan Herrmann33c26042010-06-03 10:24:16 +000049
50 <target name="checkLocalMaps">
51 <available property="skipMaps" file="${buildDirectory}/maps" />
52 </target>
53
54 <target name="tagMapFiles" if="tagMaps">
55 <!-- orig:
56 <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
57 -->
58 </target>
59
60 <!-- ===================================================================== -->
61
62 <target name="clean" unless="noclean">
63 <antcall target="allElements">
64 <param name="target" value="cleanElement" />
65 </antcall>
66 </target>
67
68 <target name="gatherLogs">
69 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
70 <antcall target="allElements">
71 <param name="target" value="gatherLogs" />
72 </antcall>
73 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
74 <fileset dir="${buildDirectory}/features">
75 <include name="**/*.log.zip" />
76 </fileset>
77 </unzip>
78 </target>
79
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000080 <!-- ===================================================================== -->
81 <!-- Steps to do before setup -->
82 <!-- ===================================================================== -->
83 <target name="preSetup">
84 </target>
85
86 <!-- ===================================================================== -->
87 <!-- Steps to do after setup but before starting the build proper -->
88 <!-- ===================================================================== -->
89 <target name="postSetup">
Stephan Herrmann33c26042010-06-03 10:24:16 +000090 <antcall target="getBaseComponents" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000091 </target>
92
93 <!-- ===================================================================== -->
94 <!-- Steps to do before fetching the build elements -->
95 <!-- ===================================================================== -->
96 <target name="preFetch">
97 </target>
98
99 <!-- ===================================================================== -->
100 <!-- Steps to do after fetching the build elements -->
101 <!-- ===================================================================== -->
102 <target name="postFetch">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000103 </target>
104
105 <!-- ===================================================================== -->
Stephan Herrmann33c26042010-06-03 10:24:16 +0000106 <!-- Steps to do before the repositories are being processed -->
107 <!-- ===================================================================== -->
108 <target name="preProcessRepos">
109 </target>
110
111 <!-- ===================================================================== -->
112 <!-- Steps to do after the repositories have been processed -->
113 <!-- ===================================================================== -->
114 <target name="postProcessRepos">
115 </target>
116
117 <!-- ===================================================================== -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000118 <!-- Steps to do before generating the build scripts. -->
119 <!-- ===================================================================== -->
120 <target name="preGenerate">
121 </target>
122
123 <!-- ===================================================================== -->
124 <!-- Steps to do after generating the build scripts. -->
125 <!-- ===================================================================== -->
126 <target name="postGenerate">
Stephan Herrmann33c26042010-06-03 10:24:16 +0000127 <!-- orig:
128 <antcall target="clean" />
129 -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000130 </target>
131
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000132 <!-- ===================================================================== -->
133 <!-- Steps to do before running the build.xmls for the elements being built. -->
134 <!-- ===================================================================== -->
135 <target name="preProcess">
136 </target>
137
138 <!-- ===================================================================== -->
139 <!-- Steps to do after running the build.xmls for the elements being built. -->
140 <!-- ===================================================================== -->
141 <target name="postProcess">
142 </target>
143
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000144 <!-- ===================================================================== -->
145 <!-- Steps to do before running assemble. -->
146 <!-- ===================================================================== -->
147 <target name="preAssemble">
148 </target>
149
150 <!-- ===================================================================== -->
151 <!-- Steps to do after running assemble. -->
152 <!-- ===================================================================== -->
153 <target name="postAssemble">
154 </target>
155
156 <!-- ===================================================================== -->
Stephan Herrmann33c26042010-06-03 10:24:16 +0000157 <!-- Steps to do before running package. -->
158 <!-- ===================================================================== -->
159 <target name="prePackage">
160 </target>
161
162 <!-- ===================================================================== -->
163 <!-- Steps to do after running package. -->
164 <!-- ===================================================================== -->
165 <target name="postPackage">
166 </target>
167
168 <!-- ===================================================================== -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000169 <!-- Steps to do after the build is done. -->
170 <!-- ===================================================================== -->
171 <target name="postBuild">
Stephan Herrmann33c26042010-06-03 10:24:16 +0000172 <antcall target="gatherLogs" />
173 </target>
174
175 <!-- ===================================================================== -->
176 <!-- Steps to do to test the build results -->
177 <!-- ===================================================================== -->
178 <target name="test">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000179 </target>
180
181 <!-- ===================================================================== -->
182 <!-- Steps to do to publish the build results -->
183 <!-- ===================================================================== -->
184 <target name="publish">
185 </target>
186
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000187 <!-- ===================================================================== -->
188 <!-- Default target -->
189 <!-- ===================================================================== -->
190 <target name="noDefault">
191 <echo message="You must specify a target when invoking this file" />
192 </target>
193
194</project>