blob: ee58f2524e93b55b87cc65c9e2a16750da45dd10 [file] [log] [blame]
Stephan Herrmann4ea615c2011-05-14 13:27:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (c) 2006, 2011 IBM Corporation and others.
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02004
5 This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License 2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +00007 which accompanies this distribution, and is available at
Stephan Herrmannaa0c80c2018-09-08 22:11:53 +02008 https://www.eclipse.org/legal/epl-2.0/
9
10 SPDX-License-Identifier: EPL-2.0
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000011
12 Contributors:
13 IBM Corporation - initial API and implementation
14 -->
15
16<!-- ===================================================================== -->
17<!-- Custom targets called from a project's generated build.xml -->
18<!-- Set customBuildCallbacks=<path/to/this/file> in your build.properties.-->
19<!-- ===================================================================== -->
20<project name="Build specific targets and properties" default="noDefault">
21
22 <!-- ===================================================================== -->
23 <!-- Default target -->
24 <!-- ===================================================================== -->
25 <target name="noDefault">
26 <echo message="This file must be called with explicit targets" />
27 </target>
28
29 <!-- ===================================================================== -->
30 <!-- Steps to do before the target build.jars -->
31 <!-- Available parameters : -->
32 <!-- build.result.folder - folder to contain the build results -->
33 <!-- ===================================================================== -->
34 <target name="pre.build.jars">
35 </target>
36
37 <!-- ===================================================================== -->
38 <!-- Steps to do after the target build.jars -->
39 <!-- Available parameters : -->
40 <!-- build.result.folder - folder to contain the build results -->
41 <!-- ===================================================================== -->
Stephan Herrmann2ba6e972016-11-10 21:31:01 +010042 <target name="post.build.jars"> <!-- SH for OT: if we are running within a full build, fetch the build labels: --> <property file="${basedir}/../../label.properties"/> <!-- HS --> <property name="buildLabel" value="global" />
43 <property name="build.result.folder" value="${basedir}" />
44 <property name="postingDirectory" value="${build.result.folder}/ecj" />
45 <property name="dest" value="${postingDirectory}/${buildLabel}" />
46 <echo message="bundleVersion=${bundleVersion}"/>
47 <ant antfile="${basedir}/scripts/export-ecj.xml" target="export"/>
48 </target>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000049
50 <!-- ===================================================================== -->
51 <!-- Steps to do before the target build.sources -->
52 <!-- Available parameters : -->
53 <!-- build.result.folder - folder to contain the build results -->
54 <!-- ===================================================================== -->
55 <target name="pre.build.sources">
56 </target>
57
58 <!-- ===================================================================== -->
59 <!-- Steps to do after the target build.sources -->
60 <!-- Available parameters : -->
61 <!-- build.result.folder - folder to contain the build results -->
62 <!-- ===================================================================== -->
63 <target name="post.build.sources">
64 </target>
65
66 <!-- ===================================================================== -->
67 <!-- Steps to do before the compilation target <name> -->
68 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
69 <!-- Available parameters : -->
70 <!-- source.foldern : n = 1 ... N, the source folders -->
71 <!-- target.folder : where the results of the compilation go -->
72 <!-- <name>.classpath : name = name of the compilation target. A -->
73 <!-- reference to the classpath structure. -->
74 <!-- ===================================================================== -->
75 <target name="pre.name">
76 </target>
77
78 <target name="pre.@dot">
79 </target>
80
81 <!-- ===================================================================== -->
82 <!-- Steps to do during the compilation target <name>, after the compile -->
83 <!-- but before jaring. Substitute "name" with the name of the compilation-->
84 <!-- target, eg @dot -->
85 <!-- Available parameters : -->
86 <!-- source.foldern : n = 1 ... N, the source folders -->
87 <!-- target.folder : where the results of the compilation go -->
88 <!-- <name>.classpath : name = name of the compilation target. A -->
89 <!-- reference to the classpath structure. -->
90 <!-- ===================================================================== -->
91 <target name="post.compile.name">
92 </target>
93
94 <target name="post.compile.@dot">
Stephan Herrmann2ba6e972016-11-10 21:31:01 +010095 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-batch-compiler"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000096 </target>
97
98 <!-- ===================================================================== -->
99 <!-- Steps to do after the compilation target <name> -->
100 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
101 <!-- Available parameters : -->
102 <!-- jar.location - the location of the compilation results -->
103 <!-- <name>.classpath : name = name of the compilation target. A -->
104 <!-- reference to the classpath structure. -->
105 <!-- ===================================================================== -->
106 <target name="post.name">
107 </target>
108
109 <target name="post.@dot">
110 </target>
111
112 <!-- ===================================================================== -->
113 <!-- Steps to do before the target gather.bin.parts -->
114 <!-- Available parameters : -->
115 <!-- build.result.folder - folder containing the build results -->
116 <!-- target.folder - destination folder -->
117 <!-- ===================================================================== -->
118 <target name="pre.gather.bin.parts">
119 </target>
120
121 <!-- ===================================================================== -->
122 <!-- Steps to do after the target gather.bin.parts -->
123 <!-- Available parameters : -->
124 <!-- build.result.folder - folder containing the build results -->
125 <!-- target.folder - destination folder -->
126 <!-- ===================================================================== -->
127 <target name="post.gather.bin.parts">
128 </target>
129
130 <!-- ===================================================================== -->
131 <!-- Steps to do before the target gather.sources -->
132 <!-- Available parameters : -->
133 <!-- destination.temp.folder - destination folder -->
134 <!-- ===================================================================== -->
135 <target name="pre.gather.sources">
136 </target>
137
138 <!-- ===================================================================== -->
139 <!-- Steps to do after the target gather.sources -->
140 <!-- Available parameters : -->
141 <!-- destination.temp.folder - destination folder -->
142 <!-- ===================================================================== -->
143 <target name="post.gather.sources">
144 </target>
145
146 <!-- ===================================================================== -->
147 <!-- Steps to do before the target gather.logs -->
148 <!-- Available parameters : -->
149 <!-- destination.temp.folder - destination folder -->
150 <!-- ===================================================================== -->
151 <target name="pre.gather.logs">
152 </target>
153
154 <!-- ===================================================================== -->
155 <!-- Steps to do after the target gather.logs -->
156 <!-- Available parameters : -->
157 <!-- destination.temp.folder - destination folder -->
158 <!-- ===================================================================== -->
159 <target name="post.gather.logs">
160 </target>
161
162 <!-- ===================================================================== -->
163 <!-- Steps to do before the target clean -->
164 <!-- Available parameters : -->
165 <!-- destination.temp.folder - destination folder -->
166 <!-- ===================================================================== -->
167 <target name="pre.clean">
168 </target>
169
170 <!-- ===================================================================== -->
171 <!-- Steps to do after the target clean -->
172 <!-- Available parameters : -->
173 <!-- plugin.destination - final destination of the build -->
174 <!-- build.result.folder - results of the compilation -->
175 <!-- temp.folder - temporary folder -->
176 <!-- ===================================================================== -->
177 <target name="post.clean">
178 </target>
179
180 <!-- ===================================================================== -->
181 <!-- Steps to do before the target jdtCompilerAdapter.jar -->
182 <!-- ===================================================================== -->
183 <target name="pre.jdtCompilerAdapter.jar">
184 </target>
185
186 <!-- ===================================================================== -->
187 <!-- Steps to do after the target compile.jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000188 <!-- ===================================================================== -->
189 <!-- Steps to do during the compilation target <name>, after the compile -->
190 <!-- but before jaring. Substitute "name" with the name of the compilation-->
191 <!-- target, eg @dot -->
192 <!-- Available parameters : -->
193 <!-- source.foldern : n = 1 ... N, the source folders -->
194 <!-- target.folder : where the results of the compilation go -->
195 <!-- <name>.classpath : name = name of the compilation target. A -->
196 <!-- reference to the classpath structure. -->
197 <!-- ===================================================================== -->
198 <target name="post.compile.jdtCompilerAdapter.jar">
199 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-ant-adapter-compiler"/>
200 <copy todir="${target.folder}">
201 <fileset dir="${basedir}/scripts/antadapter">
202 <include name="plugin.properties"/>
203 <include name="plugin.xml"/>
204 </fileset>
205 </copy>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000206 </target>
Stephan Herrmannd3c1c6a2010-12-11 19:33:00 +0000207
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000208 <!-- ===================================================================== -->
209 <!-- Steps to do after the target jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000210 <!-- jar.Location : the location of the file jdtCompilerAdapter.jar -->
211 <!-- ===================================================================== -->
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000212 <target name="post.jdtCompilerAdapter.jar">
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000213 <property name="unjarDestBin" value="${basedir}/tempbin"/>
214 <mkdir dir="${unjarDestBin}"/>
215 <unjar src="${jar.Location}" dest="${unjarDestBin}"/>
216 <delete file="${jar.Location}" />
217 <delete file="${unjarDestBin}/META-INF/MANIFEST.MF" failonerror="false"/>
218 <copy file="${basedir}/scripts/antadapter/META-INF/MANIFEST.MF" todir="${unjarDestBin}/META-INF"/>
219 <eclipse.versionReplacer path="${unjarDestBin}" version="${bundleVersion}"/>
220 <zip destfile="${jar.Location}">
221 <fileset dir="${unjarDestBin}" includes="META-INF/MANIFEST.MF"/>
222 <fileset dir="${unjarDestBin}">
223 <include name="**/*"/>
224 <exclude name="META-INF/MANIFEST.MF"/>
225 </fileset>
226 </zip>
227 <delete dir="${unjarDestBin}" failonerror="false"/>
228 </target>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000229</project>