blob: a9ffcd943f9e9bb642f733fe88de4c76d5e563e3 [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}" />
43 <ant antfile="${basedir}/scripts/export-ecj.xml" target="export"/>
44 </target>
45
46 <!-- ===================================================================== -->
47 <!-- Steps to do before the target build.sources -->
48 <!-- Available parameters : -->
49 <!-- build.result.folder - folder to contain the build results -->
50 <!-- ===================================================================== -->
51 <target name="pre.build.sources">
52 </target>
53
54 <!-- ===================================================================== -->
55 <!-- Steps to do after the target build.sources -->
56 <!-- Available parameters : -->
57 <!-- build.result.folder - folder to contain the build results -->
58 <!-- ===================================================================== -->
59 <target name="post.build.sources">
60 </target>
61
62 <!-- ===================================================================== -->
63 <!-- Steps to do before the compilation target <name> -->
64 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
65 <!-- Available parameters : -->
66 <!-- source.foldern : n = 1 ... N, the source folders -->
67 <!-- target.folder : where the results of the compilation go -->
68 <!-- <name>.classpath : name = name of the compilation target. A -->
69 <!-- reference to the classpath structure. -->
70 <!-- ===================================================================== -->
71 <target name="pre.name">
72 </target>
73
74 <target name="pre.@dot">
75 </target>
76
77 <!-- ===================================================================== -->
78 <!-- Steps to do during the compilation target <name>, after the compile -->
79 <!-- but before jaring. Substitute "name" with the name of the compilation-->
80 <!-- target, eg @dot -->
81 <!-- Available parameters : -->
82 <!-- source.foldern : n = 1 ... N, the source folders -->
83 <!-- target.folder : where the results of the compilation go -->
84 <!-- <name>.classpath : name = name of the compilation target. A -->
85 <!-- reference to the classpath structure. -->
86 <!-- ===================================================================== -->
87 <target name="post.compile.name">
88 </target>
89
90 <target name="post.compile.@dot">
91 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-batch-compiler"/>
92 </target>
93
94 <!-- ===================================================================== -->
95 <!-- Steps to do after the compilation target <name> -->
96 <!-- Substitute "name" with the name of the compilation target, eg @dot -->
97 <!-- Available parameters : -->
98 <!-- jar.location - the location of the compilation results -->
99 <!-- <name>.classpath : name = name of the compilation target. A -->
100 <!-- reference to the classpath structure. -->
101 <!-- ===================================================================== -->
102 <target name="post.name">
103 </target>
104
105 <target name="post.@dot">
106 </target>
107
108 <!-- ===================================================================== -->
109 <!-- Steps to do before the target gather.bin.parts -->
110 <!-- Available parameters : -->
111 <!-- build.result.folder - folder containing the build results -->
112 <!-- target.folder - destination folder -->
113 <!-- ===================================================================== -->
114 <target name="pre.gather.bin.parts">
115 </target>
116
117 <!-- ===================================================================== -->
118 <!-- Steps to do after the target gather.bin.parts -->
119 <!-- Available parameters : -->
120 <!-- build.result.folder - folder containing the build results -->
121 <!-- target.folder - destination folder -->
122 <!-- ===================================================================== -->
123 <target name="post.gather.bin.parts">
124 </target>
125
126 <!-- ===================================================================== -->
127 <!-- Steps to do before the target gather.sources -->
128 <!-- Available parameters : -->
129 <!-- destination.temp.folder - destination folder -->
130 <!-- ===================================================================== -->
131 <target name="pre.gather.sources">
132 </target>
133
134 <!-- ===================================================================== -->
135 <!-- Steps to do after the target gather.sources -->
136 <!-- Available parameters : -->
137 <!-- destination.temp.folder - destination folder -->
138 <!-- ===================================================================== -->
139 <target name="post.gather.sources">
140 </target>
141
142 <!-- ===================================================================== -->
143 <!-- Steps to do before the target gather.logs -->
144 <!-- Available parameters : -->
145 <!-- destination.temp.folder - destination folder -->
146 <!-- ===================================================================== -->
147 <target name="pre.gather.logs">
148 </target>
149
150 <!-- ===================================================================== -->
151 <!-- Steps to do after the target gather.logs -->
152 <!-- Available parameters : -->
153 <!-- destination.temp.folder - destination folder -->
154 <!-- ===================================================================== -->
155 <target name="post.gather.logs">
156 </target>
157
158 <!-- ===================================================================== -->
159 <!-- Steps to do before the target clean -->
160 <!-- Available parameters : -->
161 <!-- destination.temp.folder - destination folder -->
162 <!-- ===================================================================== -->
163 <target name="pre.clean">
164 </target>
165
166 <!-- ===================================================================== -->
167 <!-- Steps to do after the target clean -->
168 <!-- Available parameters : -->
169 <!-- plugin.destination - final destination of the build -->
170 <!-- build.result.folder - results of the compilation -->
171 <!-- temp.folder - temporary folder -->
172 <!-- ===================================================================== -->
173 <target name="post.clean">
174 </target>
175
176 <!-- ===================================================================== -->
177 <!-- Steps to do before the target jdtCompilerAdapter.jar -->
178 <!-- ===================================================================== -->
179 <target name="pre.jdtCompilerAdapter.jar">
180 </target>
181
182 <!-- ===================================================================== -->
183 <!-- Steps to do after the target compile.jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000184 <!-- ===================================================================== -->
185 <!-- Steps to do during the compilation target <name>, after the compile -->
186 <!-- but before jaring. Substitute "name" with the name of the compilation-->
187 <!-- target, eg @dot -->
188 <!-- Available parameters : -->
189 <!-- source.foldern : n = 1 ... N, the source folders -->
190 <!-- target.folder : where the results of the compilation go -->
191 <!-- <name>.classpath : name = name of the compilation target. A -->
192 <!-- reference to the classpath structure. -->
193 <!-- ===================================================================== -->
194 <target name="post.compile.jdtCompilerAdapter.jar">
195 <ant antfile="${basedir}/scripts/export-ecj.xml" target="extract-ant-adapter-compiler"/>
196 <copy todir="${target.folder}">
197 <fileset dir="${basedir}/scripts/antadapter">
198 <include name="plugin.properties"/>
199 <include name="plugin.xml"/>
200 </fileset>
201 </copy>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000202 </target>
Stephan Herrmannd3c1c6a2010-12-11 19:33:00 +0000203
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000204 <!-- ===================================================================== -->
205 <!-- Steps to do after the target jdtCompilerAdapter.jar -->
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000206 <!-- jar.Location : the location of the file jdtCompilerAdapter.jar -->
207 <!-- ===================================================================== -->
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000208 <target name="post.jdtCompilerAdapter.jar">
Stephan Herrmann4ea615c2011-05-14 13:27:24 +0000209 <property name="unjarDestBin" value="${basedir}/tempbin"/>
210 <mkdir dir="${unjarDestBin}"/>
211 <unjar src="${jar.Location}" dest="${unjarDestBin}"/>
212 <delete file="${jar.Location}" />
213 <delete file="${unjarDestBin}/META-INF/MANIFEST.MF" failonerror="false"/>
214 <copy file="${basedir}/scripts/antadapter/META-INF/MANIFEST.MF" todir="${unjarDestBin}/META-INF"/>
215 <eclipse.versionReplacer path="${unjarDestBin}" version="${bundleVersion}"/>
216 <zip destfile="${jar.Location}">
217 <fileset dir="${unjarDestBin}" includes="META-INF/MANIFEST.MF"/>
218 <fileset dir="${unjarDestBin}">
219 <include name="**/*"/>
220 <exclude name="META-INF/MANIFEST.MF"/>
221 </fileset>
222 </zip>
223 <delete dir="${unjarDestBin}" failonerror="false"/>
224 </target>
Stephan Herrmann7b7062f2010-04-01 19:56:59 +0000225</project>