blob: d00da9359f83d71689212807cef3e1f3997bc9b6 [file] [log] [blame]
nickboldt03a6f082019-02-12 15:17:11 -05001<!--
2 Copyright (c) 2010, 2019 IBM Corporation and others.
3 This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License 2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/legal/epl-2.0/
7
8 SPDX-License-Identifier: EPL-2.0
9
10 Contributors:
11 IBM Corporation - initial API and implementation
12 -->
david_williamsb3ef3732011-03-01 05:02:09 +000013<project name="allElements Delegator">
david_williams28ee0ae2010-09-19 08:39:14 +000014 <property
15 name="defaultAssemblyEnabled"
16 value="true"/>
17 <!--
18 =====================================================================
19 -->
20 <!-- Run a given ${target} on all elements being built -->
21 <!--
22 By default ${topLevelElementType} and ${topLevelElementId}
23 should be
24 -->
25 <!--
26 defined in the builder's build.properties file. You can
27 customize by
28 -->
29 <!-- setting the type/id values directly here. -->
30 <!--
31 You can add additional calls to ${genericTargets} to build more
32 top
33 -->
34 <!-- level elements. -->
35 <!-- -->
36 <!--
37 The top level must exist in the ${buildDirectory},
38 ${baseLocation} or
39 -->
40 <!-- ${pluginPath} locations. -->
41 <!--
42 =====================================================================
43 -->
david_williamsb3ef3732011-03-01 05:02:09 +000044 <target name="allElementsDelegator">
david_williams28ee0ae2010-09-19 08:39:14 +000045 <ant
46 antfile="${genericTargets}"
47 target="${target}">
48 <property
49 name="type"
50 value="${topLevelElementType}"/>
51 <property
52 name="id"
53 value="${topLevelElementId}"/>
54 </ant>
55 </target>
56 <!--
57 ======================================================================
58 -->
59 <!--
60 The default assemble target, this will be called to assemble
61 each
62 -->
63 <!-- config if a custom assemble target is not defined. -->
64 <!-- The following properties will be defined: -->
65 <!--
66 config : The configuration being assembled eg "win32.win32.x86"
67 -->
68 <!-- element: The element being assembled eg "org.eclipse.sdk" -->
69 <!-- assembleScriptName: The assemble script to be called -->
70 <!--
71 ======================================================================
72 -->
david_williamsb3ef3732011-03-01 05:02:09 +000073 <target name="defaultAssemble">
74 <echo message="defaultAssemble assembleScriptName: ${assembleScriptName}"/>
david_williams28ee0ae2010-09-19 08:39:14 +000075 <ant
76 antfile="${assembleScriptName}"
77 dir="${buildDirectory}"/>
78 </target>
79 <!--
80 =====================================================================
81 -->
82 <!-- Custom targets to assemble the built elements for particular -->
83 <!--
84 configurations. These generally call the generated assemble
85 scripts
86 -->
87 <!--
88 (named in ${assembleScriptName}) but may also add pre and post
89 -->
90 <!-- processing -->
91 <!--
92 Add one target for each root element and each configuration for
93 which
94 -->
95 <!--
96 custom processing is desired. Replace element.id with the id of
97 the
98 -->
99 <!--
100 top level element being built. A property with a matching name
101 must
102 -->
103 <!--
104 be defined for this custom target to be called instead of the
105 -->
106 <!-- defaultAssemble target above. -->
107 <!-- Example: name="assemble.org.eclipse.sdk" -->
108 <!-- Example: name="assemble.org.eclipse.sdk.win32.win32.x86" -->
109 <!--
110 ======================================================================
111 -->
112 <property
113 name="assemble.element.id[.config.spec]"
114 value="true"/>
david_williamsb3ef3732011-03-01 05:02:09 +0000115 <target name="assemble.element.id[.config.spec]">
david_williams28ee0ae2010-09-19 08:39:14 +0000116 <ant
117 antfile="${assembleScriptName}"
118 dir="${buildDirectory}"/>
119 </target>
120</project>