source: trunk/build.xml@ 162

Last change on this file since 162 was 162, checked in by lpino, 16 years ago
  • Added startup.jar to the compiling list
File size: 10.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="EclipseOS2 Transitional Project Build" default="help">
3
4 <!-- main build directory, $CVSROOT -->
5 <property name="basedir.main" value="${basedir}" />
6
7 <!-- user defined build properties file -->
8 <property name="build.prp" value="${basedir}/build.prp" />
9 <property file="${build.prp}"/>
10
11 <!-- default setting for bootclasspath if none specified -->
12 <property name="bootclasspath" value="${java.home}/lib/rt.jar" />
13 <!-- default setting for test.jvm if none specified -->
14 <property name="test.jvm" value="${java.home}/bin/java" />
15
16 <!-- path to compiled classes in development mode -->
17 <property name="dev.classes" value="${basedir}/-classes-" />
18
19 <!-- Definitions for AntHelper jEdit Plugin BEGIN -->
20 <path id="ah.classpath">
21 <pathelement path="${dev.classes}"/>
22 </path>
23 <path id="ah.sourcepath">
24 <pathelement path="${basedir}/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm"/>
25 <pathelement path="${basedir}/src/plugins/org.eclipse.swt/Eclipse SWT/pm"/>
26 </path>
27 <!-- Definitions for AntHelper jEdit Plugin END -->
28
29 <target name="init">
30 <record name="${basedir}/build.log" action="start" />
31 <available file="${build.prp}" property="is.build.prp" />
32 </target>
33
34 <!-- compile everything in development mode -->
35 <target name="compile" depends="build.prp">
36 <ant antfile="build.xml" target="compile" dir="tests/SWT" />
37 </target>
38
39 <!-- compile SWT dll -->
40 <target name="dll">
41 <mkdir dir="src/plugins/org.eclipse.swt.pm/os/os2/x86"/>
42 <exec executable="build.cmd" vmlauncher="false" dir="src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library">
43 </exec>
44 </target>
45
46 <!-- run the cvs2cl script to generate ChangeLog -->
47 <target name="changelog">
48 <exec executable="cvs2cl.pl.cmd" vmlauncher="false" dir="misc">
49 <arg value="--fsf"/>
50 </exec>
51 </target>
52
53 <!-- run particular test that set as default in build.prp -->
54 <target name="test" depends="build.prp">
55 <property name="test.step" value="${test.step.default}" />
56 <antcall target="${test.part.default}.test" />
57 </target>
58
59 <!-- cleans all subparts -->
60 <target name="clean" depends="init,build.prp">
61 <ant antfile="build.xml" target="clean" dir="src/plugins/org.eclipse.swt.pm" />
62 <ant antfile="build.xml" target="clean" dir="tests/SWT" />
63 <exec executable="build.cmd" vmlauncher="false" dir="src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/library">
64 <arg value="clean"/>
65 </exec>
66 </target>
67
68 <!-- original way of SWT compilation -->
69 <target name="swt.jar" depends="init,build.prp">
70 <ant antfile="build.xml" target="clean" dir="src/plugins/org.eclipse.swt.pm" />
71 <ant antfile="build.xml" target="build.jars" dir="src/plugins/org.eclipse.swt.pm" />
72 </target>
73
74 <!-- boot.jar -->
75 <target name="boot.jar" depends="init,build.prp">
76 <ant antfile="build.xml" target="clean" dir="src/plugins/org.eclipse.core.boot" />
77 <ant antfile="build.xml" target="build.jars" dir="src/plugins/org.eclipse.core.boot" />
78 </target>
79
80 <!-- startup.jar -->
81 <target name="startup.jar" depends="init,build.prp">
82 <ant antfile="build.xml" target="clean" dir="src/plugins/org.eclipse.platform" />
83 <ant antfile="build.xml" target="build.jars" dir="src/plugins/org.eclipse.platform" />
84 </target>
85
86 <!-- common point to run SWT testcase -->
87 <target name="swt.test" depends="build.prp">
88 <ant antfile="build.xml" target="run" dir="tests/SWT" />
89 </target>
90
91 <!-- individual SWT testcase entry points -->
92
93 <target name="swt001" depends="init,build.prp">
94 <property name="test.step" value="001" />
95 <antcall target="swt.test" />
96 </target>
97
98 <target name="swt002" depends="init,build.prp">
99 <property name="test.step" value="002" />
100 <antcall target="swt.test" />
101 </target>
102
103 <target name="swt003_01" depends="init,build.prp">
104 <property name="test.step" value="003_01" />
105 <antcall target="swt.test" />
106 </target>
107
108 <target name="swt003_02" depends="init,build.prp">
109 <property name="test.step" value="003_02" />
110 <antcall target="swt.test" />
111 </target>
112
113 <target name="swt003_03" depends="init,build.prp">
114 <property name="test.step" value="003_03" />
115 <antcall target="swt.test" />
116 </target>
117
118 <target name="swt004_01" depends="init,build.prp">
119 <property name="test.step" value="004_01" />
120 <antcall target="swt.test" />
121 </target>
122
123 <target name="swt004_02" depends="init,build.prp">
124 <property name="test.step" value="004_02" />
125 <antcall target="swt.test" />
126 </target>
127
128 <target name="swt005_01" depends="init,build.prp">
129 <property name="test.step" value="005_01" />
130 <antcall target="swt.test" />
131 </target>
132
133 <target name="swt005_02" depends="init,build.prp">
134 <property name="test.step" value="005_02" />
135 <antcall target="swt.test" />
136 </target>
137
138 <target name="swt006_01" depends="init,build.prp">
139 <property name="test.step" value="006_01" />
140 <antcall target="swt.test" />
141 </target>
142
143 <target name="swt006_02" depends="init,build.prp">
144 <property name="test.step" value="006_02" />
145 <antcall target="swt.test" />
146 </target>
147
148 <target name="swt006_03" depends="init,build.prp">
149 <property name="test.step" value="006_03" />
150 <antcall target="swt.test" />
151 </target>
152
153 <target name="swt007_01" depends="init,build.prp">
154 <property name="test.step" value="007_01" />
155 <antcall target="swt.test" />
156 </target>
157
158 <target name="swt007_02" depends="init,build.prp">
159 <property name="test.step" value="007_02" />
160 <antcall target="swt.test" />
161 </target>
162
163 <target name="swt008_01" depends="init,build.prp">
164 <property name="test.step" value="008_01" />
165 <antcall target="swt.test" />
166 </target>
167
168 <target name="swt008_02" depends="init,build.prp">
169 <property name="test.step" value="008_02" />
170 <antcall target="swt.test" />
171 </target>
172
173 <target name="swt008_03" depends="init,build.prp">
174 <property name="test.step" value="008_03" />
175 <antcall target="swt.test" />
176 </target>
177
178 <target name="swt008_04" depends="init,build.prp">
179 <property name="test.step" value="008_04" />
180 <antcall target="swt.test" />
181 </target>
182
183 <target name="swt009_01" depends="init,build.prp">
184 <property name="test.step" value="009_01" />
185 <antcall target="swt.test" />
186 </target>
187
188 <target name="swt009_02" depends="init,build.prp">
189 <property name="test.step" value="009_02" />
190 <antcall target="swt.test" />
191 </target>
192
193 <target name="swt009_03" depends="init,build.prp">
194 <property name="test.step" value="009_03" />
195 <antcall target="swt.test" />
196 </target>
197
198 <target name="swt009_04" depends="init,build.prp">
199 <property name="test.step" value="009_04" />
200 <antcall target="swt.test" />
201 </target>
202
203 <target name="swt009_05" depends="init,build.prp">
204 <property name="test.step" value="009_05" />
205 <antcall target="swt.test" />
206 </target>
207
208 <target name="swt009_06" depends="init,build.prp">
209 <property name="test.step" value="009_06" />
210 <antcall target="swt.test" />
211 </target>
212
213 <target name="swt009_07" depends="init,build.prp">
214 <property name="test.step" value="009_07" />
215 <antcall target="swt.test" />
216 </target>
217
218 <target name="swt009_08" depends="init,build.prp">
219 <property name="test.step" value="009_08" />
220 <antcall target="swt.test" />
221 </target>
222
223 <target name="swt009_09" depends="init,build.prp">
224 <property name="test.step" value="009_09" />
225 <antcall target="swt.test" />
226 </target>
227
228 <!-- creates the default build.prp if nesessary -->
229 <target name="build.prp" depends="init" unless="is.build.prp">
230 <echo file="${build.prp}"># build.prp: EclipseOS2 build options
231
232# path to the original Eclipse source distribution
233eclipsedir.orig=x:/apps/dev/fuentes/eclipse2.0.1
234
235# default part and step number for test (run) target
236# currently the value for part can be 'swt' only
237test.part.default=swt
238test.step.default=001
239# does test target depend on compile
240test.dependoncompile=false
241# the JVM to use for launching testcases.
242# if commented the current JVM will be used.
243# this property is intended to make it possible to compile
244# Eclipse under one JVM and run it under another
245#test.jvm=C:/Java131/jre/bin/java.exe
246
247# path where to find Java runtime library.
248# if the project is being built under OS/2, this can be left
249# commented to be picked up from the current JVM environment
250#bootclasspath=C:/Java131/jre/lib/rt.jar
251
252# JNI-API call profiler (to detect system resource leaks).
253# set to true to enable (you must have the dll and the reporter,
254# they are not in CVS for now)
255test.apiprofiler=false
256# path to the profiled version of SWT DLL (generates swtstats.scratch.log)
257test.apiprofiler.dllpath=path_to_dll
258# filename of the reporting tool (understands -raw and -report options)
259test.apiprofiler.tool=path_to_exe/EDLLReport.exe
260
261 </echo>
262 <condition property="cr" value="&#13;">
263 <os family="os/2" />
264 </condition>
265 <property name="cr" value="" />
266 <fail>
267${cr}
268${cr}The default build properties file (${build.prp}) has been created.
269${cr}Please customize it to your environment and rerun the build.
270 </fail>
271 </target>
272
273 <target name="help" depends="init">
274 <echo>
275
276There's no default targets.
277Please see the doc\index.html for more info.
278 </echo>
279 </target>
280
281</project>
Note: See TracBrowser for help on using the repository browser.