blob: 252b433bb6a01b4a355b600e075dda34f65350c0 [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 -->
62
63 <target name="assemble.org.eclipse.objectteams.otequinox">
64 <echo message="Not assembling org.eclipse.objectteams.otequinox, will create update.jars instead (later during the build)" />
65 </target>
66 <target name="assemble.org.eclipse.objectteams.otequinox.linux.gtk.ppc64">
67 <echo message="Not assembling org.eclipse.objectteams.otequinox.linux.gtk.ppc64, will create update.jars instead (later during the build)" />
68 </target>
69 <target name="assemble.org.eclipse.objectteams.otdt">
70 <echo message="Not assembling org.eclipse.objectteams.otdt, will create update.jars instead (later during the build)" />
71 </target>
72 <target name="assemble.org.eclipse.objectteams.otdt.linux.gtk.ppc64">
73 <echo message="Not assembling org.eclipse.objectteams.otdt.linux.gtk.ppc64, will create update.jars instead (later during the build)" />
74 </target>
75
76 <target name="assemble.org.eclipse.objectteams.otdt-tests">
77 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
78 <property name="zipargs" value="" />
79 </ant>
80 </target>
81 <target name="assemble.org.eclipse.objectteams.otdt-tests.linux.gtk.ppc64">
82 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
83 <property name="zipargs" value="" />
84 </ant>
85 </target>
86
87 <!-- ===================================================================== -->
88 <!-- Check out map files from correct repository -->
89 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
90 <!-- ===================================================================== -->
91 <target name="getMapFiles">
92 <delete dir="${buildDirectory}/maps"/>
93 <mkdir dir="${buildDirectory}/maps"/>
94 <property name="svn.map.url" value="${svn.repository.url}/${mapVersionTag}/${pathToMapFile}/${mapFileName}" />
95
96 <svn command="export" url="${svn.map.url}" dest="${buildDirectory}/maps/${mapFileName}" />
97 </target>
98
99 <!-- ===================================================================== -->
100 <!-- Steps to do before setup -->
101 <!-- ===================================================================== -->
102 <target name="preSetup">
103 </target>
104
105 <!-- ===================================================================== -->
106 <!-- Steps to do after setup but before starting the build proper -->
107 <!-- ===================================================================== -->
108 <target name="postSetup">
109 </target>
110
111 <!-- ===================================================================== -->
112 <!-- Steps to do before fetching the build elements -->
113 <!-- ===================================================================== -->
114 <target name="preFetch">
115 </target>
116
117 <!-- ===================================================================== -->
118 <!-- Steps to do after fetching the build elements -->
119 <!-- ===================================================================== -->
120 <target name="postFetch">
121 <echo message="Inserting OTRE into source tree"/>
122 <copy file="${otre.lib}/otre.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.runtime/lib" />
123 <copy file="${otre.lib}/otre_min.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
124 <copy file="${otre.lib}/otre_agent.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
125 </target>
126
127 <!-- ===================================================================== -->
128 <!-- Steps to do before generating the build scripts. -->
129 <!-- ===================================================================== -->
130 <target name="preGenerate">
131 </target>
132
133 <!-- ===================================================================== -->
134 <!-- Steps to do after generating the build scripts. -->
135 <!-- ===================================================================== -->
136 <target name="postGenerate">
137 </target>
138
139
140 <!-- ===================================================================== -->
141 <!-- Steps to do before running the build.xmls for the elements being built. -->
142 <!-- ===================================================================== -->
143 <target name="preProcess">
144 </target>
145
146 <!-- ===================================================================== -->
147 <!-- Steps to do after running the build.xmls for the elements being built. -->
148 <!-- ===================================================================== -->
149 <target name="postProcess">
150 </target>
151
152
153 <!-- ===================================================================== -->
154 <!-- Steps to do before running assemble. -->
155 <!-- ===================================================================== -->
156 <target name="preAssemble">
157 </target>
158
159 <!-- ===================================================================== -->
160 <!-- Steps to do after running assemble. -->
161 <!-- ===================================================================== -->
162 <target name="postAssemble">
163 </target>
164
165 <!-- ===================================================================== -->
166 <!-- Steps to do after the build is done. -->
167 <!-- ===================================================================== -->
168 <target name="postBuild">
169 </target>
170
171 <!-- ===================================================================== -->
172 <!-- Steps to do to publish the build results -->
173 <!-- ===================================================================== -->
174 <target name="publish">
175 </target>
176
177
178 <!-- ===================================================================== -->
179 <!-- Default target -->
180 <!-- ===================================================================== -->
181 <target name="noDefault">
182 <echo message="You must specify a target when invoking this file" />
183 </target>
184
185</project>