blob: 4ee82a4620472d97768e8a39236e4717ac3118c5 [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 Herrmann7b7062f2010-04-01 19:56:59 +00004 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 IBM Corporation - initial API and implementation
11 -->
12
13<!-- ===================================================================== -->
14<!-- Custom targets called from a project's generated build.xml -->
15<!-- Set customBuildCallbacks=<path/to/this/file> in your build.properties.-->
16<!-- ===================================================================== -->
17<project name="Build specific targets and properties" default="noDefault">
18
19 <!-- ===================================================================== -->
20 <!-- Default target -->
21 <!-- ===================================================================== -->
22 <target name="noDefault">
23 <echo message="This file must be called with explicit targets" />
24 </target>
25
26 <!-- ===================================================================== -->
27 <!-- Steps to do before the target build.jars -->
28 <!-- Available parameters : -->
29 <!-- build.result.folder - folder to contain the build results -->
30 <!-- ===================================================================== -->
31 <target name="pre.build.jars">
32 </target>
33
34 <!-- ===================================================================== -->
35 <!-- Steps to do after the target build.jars -->
36 <!-- Available parameters : -->
37 <!-- build.result.folder - folder to contain the build results -->
38 <!-- ===================================================================== -->
Stephan Herrmann6f85de92010-06-09 12:29:32 +000039 <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" />
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000040 <property name="build.result.folder" value="${basedir}" />
41 <property name="postingDirectory" value="${build.result.folder}/ecj" />
42 <property name="dest" value="${postingDirectory}/${buildLabel}" />
Stephan Herrmann4719b412012-09-23 19:13:15 +020043 <echo message="bundleVersion=${bundleVersion}"/>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +000044 <ant antfile="${basedir}/scripts/export-ecj.xml" target="export"/>
45 </target>
46
47 <!-- ===================================================================== -->
48 <!-- Steps to do before the target build.sources -->
49 <!-- Available parameters : -->
50 <!-- build.result.folder - folder to contain the build results -->
51 <!-- ===================================================================== -->
52 <target name="pre.build.sources">
53 </target>
54
55 <!-- ===================================================================== -->
56 <!-- Steps to do after the target build.sources -->
57 <!-- Available parameters : -->
58 <!-- build.result.folder - folder to contain the build results -->
59 <!-- ===================================================================== -->
60 <target name="post.build.sources">
61 </target>
62
63 <!-- ===================================================================== -->
64 <!-- Steps to do before the compilation target <name> -->
65 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
66 <!-- Available parameters : -->
67 <!-- source.foldern : n = 1 ... N, the source folders -->
68 <!-- target.folder : where the results of the compilation go -->
69 <!-- <name>.classpath : name = name of the compilation target. A -->
70 <!-- reference to the classpath structure. -->
71 <!-- ===================================================================== -->
72 <target name="pre.name">
73 </target>
74
75 <target name="pre.@dot">
76 </target>
77
78 <!-- ===================================================================== -->
79 <!-- Steps to do during the compilation target <name>, after the compile -->
80 <!-- but before jaring. Substitute "name" with the name of the compilation-->
81 <!-- target, eg @dot -->
82 <!-- Available parameters : -->
83 <!-- source.foldern : n = 1 ... N, the source folders -->
84 <!-- target.folder : where the results of the compilation go -->
85 <!-- <name>.classpath : name = name of the compilation target. A -->
86 <!-- reference to the classpath structure. -->
87 <!-- ===================================================================== -->
88 <target name="post.compile.name">
89 </target>
90
91 <target name="post.compile.@dot">
92 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-batch-compiler"/>
93 </target>
94
95 <!-- ===================================================================== -->
96 <!-- Steps to do after the compilation target <name> -->
97 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
98 <!-- Available parameters : -->
99 <!-- jar.location - the location of the compilation results -->
100 <!-- <name>.classpath : name = name of the compilation target. A -->
101 <!-- reference to the classpath structure. -->
102 <!-- ===================================================================== -->
103 <target name="post.name">
104 </target>
105
106 <target name="post.@dot">
107 </target>
108
109 <!-- ===================================================================== -->
110 <!-- Steps to do before the target gather.bin.parts -->
111 <!-- Available parameters : -->
112 <!-- build.result.folder - folder containing the build results -->
113 <!-- target.folder - destination folder -->
114 <!-- ===================================================================== -->
115 <target name="pre.gather.bin.parts">
116 </target>
117
118 <!-- ===================================================================== -->
119 <!-- Steps to do after the target gather.bin.parts -->
120 <!-- Available parameters : -->
121 <!-- build.result.folder - folder containing the build results -->
122 <!-- target.folder - destination folder -->
123 <!-- ===================================================================== -->
124 <target name="post.gather.bin.parts">
125 </target>
126
127 <!-- ===================================================================== -->
128 <!-- Steps to do before the target gather.sources -->
129 <!-- Available parameters : -->
130 <!-- destination.temp.folder - destination folder -->
131 <!-- ===================================================================== -->
132 <target name="pre.gather.sources">
133 </target>
134
135 <!-- ===================================================================== -->
136 <!-- Steps to do after the target gather.sources -->
137 <!-- Available parameters : -->
138 <!-- destination.temp.folder - destination folder -->
139 <!-- ===================================================================== -->
140 <target name="post.gather.sources">
141 </target>
142
143 <!-- ===================================================================== -->
144 <!-- Steps to do before the target gather.logs -->
145 <!-- Available parameters : -->
146 <!-- destination.temp.folder - destination folder -->
147 <!-- ===================================================================== -->
148 <target name="pre.gather.logs">
149 </target>
150
151 <!-- ===================================================================== -->
152 <!-- Steps to do after the target gather.logs -->
153 <!-- Available parameters : -->
154 <!-- destination.temp.folder - destination folder -->
155 <!-- ===================================================================== -->
156 <target name="post.gather.logs">
157 </target>
158
159 <!-- ===================================================================== -->
160 <!-- Steps to do before the target clean -->
161 <!-- Available parameters : -->
162 <!-- destination.temp.folder - destination folder -->
163 <!-- ===================================================================== -->
164 <target name="pre.clean">
165 </target>
166
167 <!-- ===================================================================== -->
168 <!-- Steps to do after the target clean -->
169 <!-- Available parameters : -->
170 <!-- plugin.destination - final destination of the build -->
171 <!-- build.result.folder - results of the compilation -->
172 <!-- temp.folder - temporary folder -->
173 <!-- ===================================================================== -->
174 <target name="post.clean">
175 </target>
176
177 <!-- ===================================================================== -->
178 <!-- Steps to do before the target jdtCompilerAdapter.jar -->
179 <!-- ===================================================================== -->
180 <target name="pre.jdtCompilerAdapter.jar">
181 </target>
182
183 <!-- ===================================================================== -->
184 <!-- Steps to do after the target compile.jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000185 <!-- ===================================================================== -->
186 <!-- Steps to do during the compilation target <name>, after the compile -->
187 <!-- but before jaring. Substitute "name" with the name of the compilation-->
188 <!-- target, eg @dot -->
189 <!-- Available parameters : -->
190 <!-- source.foldern : n = 1 ... N, the source folders -->
191 <!-- target.folder : where the results of the compilation go -->
192 <!-- <name>.classpath : name = name of the compilation target. A -->
193 <!-- reference to the classpath structure. -->
194 <!-- ===================================================================== -->
195 <target name="post.compile.jdtCompilerAdapter.jar">
196 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-ant-adapter-compiler"/>
197 <copy todir="${target.folder}">
198 <fileset dir="${basedir}/scripts/antadapter">
199 <include name="plugin.properties"/>
200 <include name="plugin.xml"/>
201 </fileset>
202 </copy>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000203 </target>
Stephan Herrmannd3c1c6a2010-12-11 19:33:00 +0000204
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000205 <!-- ===================================================================== -->
206 <!-- Steps to do after the target jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000207 <!-- jar.Location : the location of the file jdtCompilerAdapter.jar -->
208 <!-- ===================================================================== -->
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000209 <target name="post.jdtCompilerAdapter.jar">
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000210 <property name="unjarDestBin" value="${basedir}/tempbin"/>
211 <mkdir dir="${unjarDestBin}"/>
212 <unjar src="${jar.Location}" dest="${unjarDestBin}"/>
213 <delete file="${jar.Location}" />
214 <delete file="${unjarDestBin}/META-INF/MANIFEST.MF" failonerror="false"/>
215 <copy file="${basedir}/scripts/antadapter/META-INF/MANIFEST.MF" todir="${unjarDestBin}/META-INF"/>
216 <eclipse.versionReplacer path="${unjarDestBin}" version="${bundleVersion}"/>
217 <zip destfile="${jar.Location}">
218 <fileset dir="${unjarDestBin}" includes="META-INF/MANIFEST.MF"/>
219 <fileset dir="${unjarDestBin}">
220 <include name="**/*"/>
221 <exclude name="META-INF/MANIFEST.MF"/>
222 </fileset>
223 </zip>
224 <delete dir="${unjarDestBin}" failonerror="false"/>
225 </target>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000226</project>