blob: 26c9fc1213bc443e1b7dccee3b65dd2649945d24 [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
13
14 <condition property="isNightlyBuild">
15 <equals arg1="${buildType}" arg2="N"/>
16 </condition>
17 <property file="${buildDirectory}/version.properties"/>
18 <property name="buildLabel" value="${buildType}-${featureVersion}"/>
19 <property name="buildId" value="${featureVersion}"/>
20
21 <!-- ===================================================================== -->
22 <!-- Run a given ${target} on all elements being built -->
23 <!-- Add on <ant> task for each top level element being built. -->
24 <!-- ===================================================================== -->
25 <target name="allElements">
26
27 <!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
28
29 <ant antfile="${genericTargets}" target="${target}" >
30 <property name="type" value="feature" />
31 <property name="id" value="org.eclipse.objectteams.otequinox" />
32 </ant>
33
34 <ant antfile="${genericTargets}" target="${target}" >
35 <property name="type" value="feature" />
36 <property name="id" value="org.eclipse.objectteams.otdt" />
37 </ant>
38
39 <condition property="really.run.tests">
40 <istrue value="${do.run.tests}"/>
41 </condition>
42
43 <antcall target="testElements" />
44
45 </target>
46
47 <target name="testElements" if="really.run.tests">
48 <ant antfile="${genericTargets}" target="${target}" >
49 <property name="type" value="feature" />
50 <property name="id" value="org.eclipse.objectteams.otdt-tests" />
51 </ant>
52 </target>
53
54 <!-- ===================================================================== -->
55 <!-- Targets to assemble the built elements for particular configurations -->
56 <!-- These generally call the generated assemble scripts (named in -->
57 <!-- ${assembleScriptName}) but may also add pre and post processing -->
58 <!-- Add one target for each root element and each configuration -->
59 <!-- ===================================================================== -->
60
61 <!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000062 <!-- different features are gathered into two different locations:
63 OTDT -> ${otdtUpdatesDir}
64 tests -> ${testsUpdatesDirBase}/otdt
65 -->
66 <target name="assemble.org.eclipse.objectteams.otequinox.p2">
67 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
68 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
69 </ant>
70 </target>
71 <target name="assemble.org.eclipse.objectteams.otequinox.group.group.group">
72 <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
73 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000074 <target name="assemble.org.eclipse.objectteams.otequinox">
75 <echo message="Not assembling org.eclipse.objectteams.otequinox, will create update.jars instead (later during the build)" />
76 </target>
Stephan Herrmannfc674c22010-05-19 11:32:56 +000077 <!-- Regarding the config "linux.gtk.*" see comment in build.properties -->
78 <target name="assemble.org.eclipse.objectteams.otequinox.linux.gtk.*">
79 <echo message="Not assembling org.eclipse.objectteams.otequinox.linux.gtk.*, will create update.jars instead (later during the build)" />
Stephan Herrmann691add92010-05-18 12:02:51 +000080 </target>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000081 <target name="assemble.org.eclipse.objectteams.otdt.p2">
82 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
83 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
84 </ant>
85 </target>
86 <target name="assemble.org.eclipse.objectteams.otdt.group.group.group">
87 <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
88 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000089 <target name="assemble.org.eclipse.objectteams.otdt">
90 <echo message="Not assembling org.eclipse.objectteams.otdt, will create update.jars instead (later during the build)" />
91 </target>
Stephan Herrmannfc674c22010-05-19 11:32:56 +000092 <target name="assemble.org.eclipse.objectteams.otdt.linux.gtk.*">
93 <echo message="Not assembling org.eclipse.objectteams.otdt.linux.gtk.*, will create update.jars instead (later during the build)" />
Stephan Herrmann691add92010-05-18 12:02:51 +000094 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000095
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000096 <target name="assemble.org.eclipse.objectteams.otdt-tests.p2">
97 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
98 <property name="p2.build.repo" value="file://${testsUpdatesDirBase}/otdt"/>
99 </ant>
100 </target>
101 <target name="assemble.org.eclipse.objectteams.otdt-tests.group.group.group">
102 <echo message="empty target" />
103 </target>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000104 <target name="assemble.org.eclipse.objectteams.otdt-tests">
105 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
106 <property name="zipargs" value="" />
107 </ant>
108 </target>
Stephan Herrmannfc674c22010-05-19 11:32:56 +0000109 <target name="assemble.org.eclipse.objectteams.otdt-tests.linux.gtk.*">
Stephan Herrmann691add92010-05-18 12:02:51 +0000110 <antcall target="assemble.org.eclipse.objectteams.otdt-tests"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000111 </target>
112
113 <!-- ===================================================================== -->
114 <!-- Check out map files from correct repository -->
115 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
116 <!-- ===================================================================== -->
117 <target name="getMapFiles">
118 <delete dir="${buildDirectory}/maps"/>
119 <mkdir dir="${buildDirectory}/maps"/>
120 <property name="svn.map.url" value="${svn.repository.url}/${mapVersionTag}/${pathToMapFile}/${mapFileName}" />
121
122 <svn command="export" url="${svn.map.url}" dest="${buildDirectory}/maps/${mapFileName}" />
123 </target>
124
125 <!-- ===================================================================== -->
126 <!-- Steps to do before setup -->
127 <!-- ===================================================================== -->
128 <target name="preSetup">
129 </target>
130
131 <!-- ===================================================================== -->
132 <!-- Steps to do after setup but before starting the build proper -->
133 <!-- ===================================================================== -->
134 <target name="postSetup">
135 </target>
136
137 <!-- ===================================================================== -->
138 <!-- Steps to do before fetching the build elements -->
139 <!-- ===================================================================== -->
140 <target name="preFetch">
141 </target>
142
143 <!-- ===================================================================== -->
144 <!-- Steps to do after fetching the build elements -->
145 <!-- ===================================================================== -->
146 <target name="postFetch">
147 <echo message="Inserting OTRE into source tree"/>
148 <copy file="${otre.lib}/otre.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.runtime/lib" />
149 <copy file="${otre.lib}/otre_min.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
150 <copy file="${otre.lib}/otre_agent.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
151 </target>
152
153 <!-- ===================================================================== -->
154 <!-- Steps to do before generating the build scripts. -->
155 <!-- ===================================================================== -->
156 <target name="preGenerate">
157 </target>
158
159 <!-- ===================================================================== -->
160 <!-- Steps to do after generating the build scripts. -->
161 <!-- ===================================================================== -->
162 <target name="postGenerate">
163 </target>
164
165
166 <!-- ===================================================================== -->
167 <!-- Steps to do before running the build.xmls for the elements being built. -->
168 <!-- ===================================================================== -->
169 <target name="preProcess">
170 </target>
171
172 <!-- ===================================================================== -->
173 <!-- Steps to do after running the build.xmls for the elements being built. -->
174 <!-- ===================================================================== -->
175 <target name="postProcess">
176 </target>
177
178
179 <!-- ===================================================================== -->
180 <!-- Steps to do before running assemble. -->
181 <!-- ===================================================================== -->
182 <target name="preAssemble">
183 </target>
184
185 <!-- ===================================================================== -->
186 <!-- Steps to do after running assemble. -->
187 <!-- ===================================================================== -->
188 <target name="postAssemble">
189 </target>
190
191 <!-- ===================================================================== -->
192 <!-- Steps to do after the build is done. -->
193 <!-- ===================================================================== -->
194 <target name="postBuild">
195 </target>
196
197 <!-- ===================================================================== -->
198 <!-- Steps to do to publish the build results -->
199 <!-- ===================================================================== -->
200 <target name="publish">
201 </target>
202
203
204 <!-- ===================================================================== -->
205 <!-- Default target -->
206 <!-- ===================================================================== -->
207 <target name="noDefault">
208 <echo message="You must specify a target when invoking this file" />
209 </target>
210
211</project>