1 <project name="Build specific targets and properties" default="noDefault">
3 <!-- ===================================================================== -->
4 <!-- Run a given ${target} on all elements being built -->
5 <!-- Add on <ant> task for each top level element being built. -->
6 <!-- ===================================================================== -->
7 <property name="allElementsFile" value="allElements.xml" />
8 <import file="${allElementsFile}" />
9 <target name="allElements">
10 <antcall target="allElementsDelegator" />
13 <!-- ===================================================================== -->
14 <!-- Fetch a base eclipse environment matching your local (linux/mac/win) -->
15 <!-- os/ws to use in the build. only for linux/gtk/x86, win32 and macosx -->
16 <!-- this is used to bootstrap the build and guarantee that the build -->
17 <!-- runs against the correct version of Eclipse -->
18 <!-- ===================================================================== -->
19 <target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
20 <condition property="download.extension" value="win32.zip">
21 <os family="windows" />
23 <condition property="download.extension" value="macosx-carbon.tar.gz">
29 <condition property="download.extension" value="linux-gtk.tar.gz">
38 <property name="eclipseURL" value="http://download.eclipse.org/eclipse/downloads/drops" />
39 <property name="eclipseBaseURL" value="${eclipseURL}/${eclipseBuildId}/eclipse-platform-${eclipseBuildId}-${download.extension}" />
41 <get usetimestamp="true" src="${eclipseBaseURL}" dest="${buildDirectory}/downloads/eclipse-platform-${eclipseBuildId}-${download.extension}" />
42 <unzip dest="${base}" overwrite="true" src="${buildDirectory}/downloads/eclipse-platform-${eclipseBuildId}-${download.extension}" />
45 <target name="checkLocalBase">
46 <available file="${base}" property="skipBase" />
49 <!-- ===================================================================== -->
50 <!-- Check out map files from correct repository -->
51 <!-- Replace values for mapsCheckoutTag as desired. -->
52 <!-- ===================================================================== -->
53 <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
54 <property name="mapsCheckoutTag" value="HEAD" />
55 <cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
58 <target name="checkLocalMaps">
59 <available property="skipMaps" file="${buildDirectory}/maps" />
62 <target name="tagMapFiles" if="tagMaps">
63 <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
66 <!-- ===================================================================== -->
68 <target name="clean" unless="noclean">
69 <antcall target="allElements">
70 <param name="target" value="cleanElement" />
74 <target name="gatherLogs">
75 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
76 <antcall target="allElements">
77 <param name="target" value="gatherLogs" />
79 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
80 <fileset dir="${buildDirectory}/features">
81 <include name="**/*.log.zip" />
86 <!-- ===================================================================== -->
87 <!-- Steps to do before setup -->
88 <!-- ===================================================================== -->
89 <target name="preSetup">
92 <!-- ===================================================================== -->
93 <!-- Steps to do after setup but before starting the build proper -->
94 <!-- ===================================================================== -->
95 <target name="postSetup">
96 <antcall target="getBaseComponents" />
99 <!-- ===================================================================== -->
100 <!-- Steps to do before fetching the build elements -->
101 <!-- ===================================================================== -->
102 <target name="preFetch">
105 <!-- ===================================================================== -->
106 <!-- Steps to do after fetching the build elements -->
107 <!-- ===================================================================== -->
108 <target name="postFetch">
111 <!-- ===================================================================== -->
112 <!-- Steps to do before generating the build scripts. -->
113 <!-- ===================================================================== -->
114 <target name="preGenerate">
117 <!-- ===================================================================== -->
118 <!-- Steps to do after generating the build scripts. -->
119 <!-- ===================================================================== -->
120 <target name="postGenerate">
121 <antcall target="clean" />
124 <!-- ===================================================================== -->
125 <!-- Steps to do before running the build.xmls for the elements being built. -->
126 <!-- ===================================================================== -->
127 <target name="preProcess">
130 <!-- ===================================================================== -->
131 <!-- Steps to do after running the build.xmls for the elements being built. -->
132 <!-- ===================================================================== -->
133 <target name="postProcess">
136 <!-- ===================================================================== -->
137 <!-- Steps to do before running assemble. -->
138 <!-- ===================================================================== -->
139 <target name="preAssemble">
142 <!-- ===================================================================== -->
143 <!-- Steps to do after running assemble. -->
144 <!-- ===================================================================== -->
145 <target name="postAssemble">
148 <!-- ===================================================================== -->
149 <!-- Steps to do before running package. -->
150 <!-- ===================================================================== -->
151 <target name="prePackage">
154 <!-- ===================================================================== -->
155 <!-- Steps to do after running package. -->
156 <!-- ===================================================================== -->
157 <target name="postPackage">
160 <!-- ===================================================================== -->
161 <!-- Steps to do after the build is done. -->
162 <!-- ===================================================================== -->
163 <target name="postBuild">
164 <antcall target="gatherLogs" />
167 <!-- ===================================================================== -->
168 <!-- Steps to do to test the build results -->
169 <!-- ===================================================================== -->
173 <!-- ===================================================================== -->
174 <!-- Steps to do to publish the build results -->
175 <!-- ===================================================================== -->
176 <target name="publish">
179 <!-- ===================================================================== -->
180 <!-- Default target -->
181 <!-- ===================================================================== -->
182 <target name="noDefault">
183 <echo message="You must specify a target when invoking this file" />