source: trunk/build.xml@ 130

Last change on this file since 130 was 48, checked in by lpino, 18 years ago

(build.xml) - New testcase for the Menu class

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