blob: 1c5cbbd7b567a5f2335f14eea7359864d626be2c [file] [log] [blame]
Stephan Herrmann33c26042010-06-03 10:24:16 +00001<project name="allElements Delegator">
2 <property name="defaultAssemblyEnabled" value="true" />
3
4 <!-- ===================================================================== -->
5 <!-- Run a given ${target} on all elements being built -->
6 <!-- By default ${topLevelElementType} and ${topLevelElementId} should be -->
7 <!-- defined in the builder's build.properties file. You can customize by -->
8 <!-- setting the type/id values directly here. -->
9 <!-- You can add additional calls to ${genericTargets} to build more top -->
10 <!-- level elements. -->
11 <!-- -->
12 <!-- The top level must exist in the ${buildDirectory}, ${baseLocation} or -->
13 <!-- ${pluginPath} locations. -->
14 <!-- ===================================================================== -->
15 <target name="allElementsDelegator">
16 <!-- orig:
17 <ant antfile="${genericTargets}" target="${target}">
18 <property name="type" value="${topLevelElementType}" />
19 <property name="id" value="${topLevelElementId}" />
20 </ant>
21 -->
22 <!-- custom: -->
23 <!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
24
25 <ant antfile="${genericTargets}" target="${target}" >
26 <property name="type" value="feature" />
27 <property name="id" value="org.eclipse.objectteams.otequinox" />
28 </ant>
29
30 <ant antfile="${genericTargets}" target="${target}" >
31 <property name="type" value="feature" />
32 <property name="id" value="org.eclipse.objectteams.otdt" />
33 </ant>
34
35 <condition property="really.run.tests">
36 <istrue value="${do.run.tests}"/>
37 </condition>
38
39 <antcall target="testElements" />
40 <!-- :motsuc -->
41 </target>
42
43 <target name="testElements" if="really.run.tests">
44 <ant antfile="${genericTargets}" target="${target}" >
45 <property name="type" value="feature" />
46 <property name="id" value="org.eclipse.objectteams.otdt-tests" />
47 </ant>
48 </target>
49
50 <!-- ====================================================================== -->
51 <!-- The default assemble target, this will be called to assemble each -->
52 <!-- config if a custom assemble target is not defined. -->
53 <!-- The following properties will be defined: -->
54 <!-- config : The configuration being assembled eg "win32.win32.x86" -->
55 <!-- element: The element being assembled eg "org.eclipse.sdk" -->
56 <!-- assembleScriptName: The assemble script to be called -->
57 <!-- ====================================================================== -->
58 <target name="defaultAssemble">
59 <ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
60 </target>
61
62 <!-- ===================================================================== -->
63 <!-- Custom targets to assemble the built elements for particular -->
64 <!-- configurations. These generally call the generated assemble scripts -->
65 <!-- (named in ${assembleScriptName}) but may also add pre and post -->
66 <!-- processing -->
67 <!-- Add one target for each root element and each configuration for which -->
68 <!-- custom processing is desired. Replace element.id with the id of the -->
69 <!-- top level element being built. A property with a matching name must -->
70 <!-- be defined for this custom target to be called instead of the -->
71 <!-- defaultAssemble target above. -->
72 <!-- Example: name="assemble.org.eclipse.sdk" -->
73 <!-- Example: name="assemble.org.eclipse.sdk.win32.win32.x86" -->
74 <!-- ====================================================================== -->
75
76 <!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
77
78 <!-- different features are gathered into two different locations:
79 OTDT -> ${otdtUpdatesDir}
80 tests -> ${testsUpdatesDirBase}/otdt
81 -->
82 <!-- set output repository for otequinox.feature: -->
83 <property name="assemble.org.eclipse.objectteams.otequinox.p2" value="true" />
84 <target name="assemble.org.eclipse.objectteams.otequinox.p2">
85 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
86 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
87 </ant>
88 </target>
89
90 <!-- set output repository for otdt.feature: -->
91 <property name="assemble.org.eclipse.objectteams.otdt.p2" value="true" />
92 <target name="assemble.org.eclipse.objectteams.otdt.p2">
93 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
94 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
95 </ant>
96 </target>
97
98 <!-- set output repository for otdt-tests.feature: -->
99 <property name="assemble.org.eclipse.objectteams.otdt-tests.p2" value="true" />
100 <target name="assemble.org.eclipse.objectteams.otdt-tests.p2">
101 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
102 <property name="p2.build.repo" value="file://${testsUpdatesDirBase}/otdt"/>
103 </ant>
104 </target>
105
106 <!-- Regarding the config "linux.gtk.*" see comment in build.properties -->
107 <!-- are more targets called and create unnecessary work? -->
108</project>