blob: 07a73f010eba33f9b96f55381640b5acfdeeb17d [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<!--
2 Copyright (c) 2010 Stephan Herrmann and others.
Stephan Herrmann35705382020-03-03 21:42:19 +01003 This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00005 which accompanies this distribution, and is available at
Stephan Herrmann35705382020-03-03 21:42:19 +01006 https://www.eclipse.org/legal/epl-2.0/
7
8 SPDX-License-Identifier: EPL-2.0
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00009 Contributors:
10 Stephan Herrmann - initial API and implementation
11-->
12<project name="Build specific targets and properties" default="noDefault" >
13
14
15 <condition property="isNightlyBuild">
16 <equals arg1="${buildType}" arg2="N"/>
17 </condition>
18 <property file="${buildDirectory}/version.properties"/>
19 <property name="buildLabel" value="${buildType}-${featureVersion}"/>
Stephan Herrmannd5f8b612013-06-07 01:02:19 +020020 <property name="buildId" value="${featureVersion}"/>
Stephan Herrmannd5f8b612013-06-07 01:02:19 +020021
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000022
23
24 <!-- ===================================================================== -->
25 <!-- Run a given ${target} on all elements being built -->
26 <!-- Add on <ant> task for each top level element being built. -->
27 <!-- ===================================================================== -->
28 <target name="allElements">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000029 <ant antfile="${genericTargets}" target="${target}" >
30 <property name="type" value="feature" />
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000031 <property name="id" value="org.eclipse.objectteams.otdt.core.patch" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000032 </ant>
33 </target>
34
35 <!-- ===================================================================== -->
36 <!-- Targets to assemble the built elements for particular configurations -->
37 <!-- These generally call the generated assemble scripts (named in -->
38 <!-- ${assembleScriptName}) but may also add pre and post processing -->
39 <!-- Add one target for each root element and each configuration -->
40 <!-- ===================================================================== -->
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000041 <target name="assemble.org.eclipse.objectteams.otdt.core.patch.group.group.group">
42 <echo message="Skipping zip assembly"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000043 </target>
44
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000045 <property name="assemble.org.eclipse.objectteams.otdt.core.patch.p2" value="true" />
46 <target name="assemble.org.eclipse.objectteams.otdt.core.patch.p2">
47 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
48 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
49 </ant>
50 </target>
51
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000052 <!-- ===================================================================== -->
53 <!-- Check out map files from correct repository -->
54 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
55 <!-- ===================================================================== -->
56 <target name="getMapFiles">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000057 <mkdir dir="${buildDirectory}/maps"/>
Stephan Herrmannd8abd7a2012-04-12 22:08:50 +020058 <copy file="${map.file.path}" todir="${buildDirectory}/maps/" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000059 </target>
60
61 <!-- ===================================================================== -->
62 <!-- Steps to do before setup -->
63 <!-- ===================================================================== -->
64 <target name="preSetup">
65 </target>
66
67 <!-- ===================================================================== -->
68 <!-- Steps to do after setup but before starting the build proper -->
69 <!-- ===================================================================== -->
70 <target name="postSetup">
71 </target>
72
73 <!-- ===================================================================== -->
74 <!-- Steps to do before fetching the build elements -->
75 <!-- ===================================================================== -->
76 <target name="preFetch">
77 </target>
78
79 <!-- ===================================================================== -->
80 <!-- Steps to do after fetching the build elements -->
81 <!-- ===================================================================== -->
82 <target name="postFetch">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000083 </target>
84
85 <!-- ===================================================================== -->
86 <!-- Steps to do before generating the build scripts. -->
87 <!-- ===================================================================== -->
88 <target name="preGenerate">
89 </target>
90
91 <!-- ===================================================================== -->
92 <!-- Steps to do after generating the build scripts. -->
93 <!-- ===================================================================== -->
94 <target name="postGenerate">
95 </target>
96
97
98 <!-- ===================================================================== -->
99 <!-- Steps to do before running the build.xmls for the elements being built. -->
100 <!-- ===================================================================== -->
101 <target name="preProcess">
102 </target>
103
104 <!-- ===================================================================== -->
105 <!-- Steps to do after running the build.xmls for the elements being built. -->
106 <!-- ===================================================================== -->
107 <target name="postProcess">
108 </target>
109
110
111 <!-- ===================================================================== -->
112 <!-- Steps to do before running assemble. -->
113 <!-- ===================================================================== -->
114 <target name="preAssemble">
115 </target>
116
117 <!-- ===================================================================== -->
118 <!-- Steps to do after running assemble. -->
119 <!-- ===================================================================== -->
120 <target name="postAssemble">
121 </target>
122
123 <!-- ===================================================================== -->
124 <!-- Steps to do after the build is done. -->
125 <!-- ===================================================================== -->
126 <target name="postBuild">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000127 </target>
128
129 <!-- ===================================================================== -->
130 <!-- Steps to do to publish the build results -->
131 <!-- ===================================================================== -->
132 <target name="publish">
133 </target>
134
135
136 <!-- ===================================================================== -->
137 <!-- Default target -->
138 <!-- ===================================================================== -->
139 <target name="noDefault">
140 <echo message="You must specify a target when invoking this file" />
141 </target>
142
143</project>