forked from Xiaoying/BIRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildChartUI.xml
312 lines (278 loc) · 12.1 KB
/
BuildChartUI.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?xml version="1.0"?>
<!--
*************************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Actuate Corporation - initial API and implementation
*
*************************************************************************
*
* Build.xml
*
* Created on 03/15/2005
* Build script for project org.eclipse.birt.chart.ui
*
*
* The following are public targets callable by external users.
*
* "Clean" - Clean all objects created by this script. Individual project build script can not call this target;
* "Jar" - Compile source code and generate jar for this project.
* The compile dependency on other projects should be defined explicitly.
* eclipse.home should be passed in when Individual project build script call this target;
* the property of "failonerror" should be set true(default) when compiling source code
* "UnitTest" - Run unit tests. This task must be called after calling Jar task,
* so it needn't depend on Jar explicitly
* "Export" - Export the project, for instance, jar files are copied to a designated folder.
* this task must be called after calling Jar task, so it needn't depend on Jar explicitly
* "JavaDoc" - generate java documents
*
* Usage:
* ant [any one or more of the public targets]
* -Declipse.home=<your eclipse home>
*
* Default target is "Jar".
*
*
* This script may also additional targets. These targets are private to this build script only.
*
* "utest" - Run unit tests
*
* Notes:
* 1. classpath need to be set for junit.jar
* 2. This file now requires Ant 1.6
*
* Change History:
*
* 1. 03/15/2005: initial version
*
-->
<project name="BIRT Chart Engine Project" default="build" basedir=".">
<description>BIRT Chart UI Project.</description>
<!-- set global properties for this build -->
<!-- Public properties, used by public targets, top level build script
will pass on the value at runtime. Properties will have there default
value.
eclipse.home
utest.report.dir
javadoc.dir
plugin.version
-->
<!-- ===== Default value for public properties ============= -->
<property file="META-INF/MANIFEST.MF" />
<property name="utest.report.dir" location="utestreports" />
<property name="api.javadoc.dir" location="docs/api" />
<property name="javadoc.dir" location="docs/api" />
<property name="export.dir" location="export" />
<property name="eclipse.home" location="." />
<property name="bin" location="bin"/>
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="module.name" value="org.eclipse.birt.chart.ui"/>
<property name="core.dir" location="../org.eclipse.birt.core"/>
<property name="chart.engine.dir" location="../org.eclipse.birt.chart.engine"/>
<property name="core.ui.dir" location="../org.eclipse.birt.core.ui"/>
<!-- set platform related properties-->
<condition property="basews" value="win32">
<os family="windows"/>
</condition>
<condition property="basews" value="gtk">
<not>
<os family="windows"/>
</not>
</condition>
<!-- set eclipse related properties -->
<property name="eclipse.runtime.dir" value="org.eclipse.core.runtime" />
<property name="eclipse.ui.workbench.dir" value="org.eclipse.ui.workbench" />
<property name="eclipse.osgi.dir" value="org.eclipse.osgi" />
<property name="emf.common.dir" value="org.eclipse.emf.common" />
<property name="emf.ecore.dir" value="org.eclipse.emf.ecore" />
<property name="swt.dir" value="org.eclipse.swt" />
<property name="jar.name" value="${module.name}_${Bundle-Version}.jar" />
<path id="class.path">
<pathelement path="${bin}"/>
<fileset dir="${eclipse.home}/plugins">
<include name="org.eclipse.core.runtime_*/*.jar"/>
<include name="org.eclipse.core.runtime*.jar"/>
<include name="${eclipse.ui.workbench.dir}_*/*.jar"/>
<include name="org.eclipse.ui.workbench*.jar"/>
<include name="${eclipse.osgi.dir}_*/*.jar"/>
<include name="org.eclipse.osgi*.jar"/>
<include name="${emf.common.dir}_*/runtime/common.jar"/>
<include name="${emf.ecore.dir}_*/runtime/ecore.jar"/>
<include name="org.eclipse.emf.common_*.jar"/>
<include name="org.eclipse.emf.ecore_*.jar"/>
<include name="${swt.dir}.${basews}_*/ws/${basews}/swt.jar"/>
<include name="org.eclipse.swt*.jar"/>
<include name="org.eclipse.jface_*.jar"/>
<include name="org.eclipse.equinox*.jar"/>
<include name="com.ibm.icu_*.jar"/>
</fileset>
<fileset dir="../org.mozilla.rhino">
<include name="**/*.jar"/>
</fileset>
<fileset file="${core.dir}/*.jar" />
<fileset file="${chart.engine.dir}/org.eclipse.birt.chart.engine_*.jar"/>
<fileset file="${core.ui.dir}/org.eclipse.birt.core.ui_*.jar"/>
</path>
<!-- Compile source code and generate jar for this project.
Input parameters:
eclipse.home
-->
<target name="Jar" depends="compileSource" description="create project jar">
<!-- Create the project jar -->
<jar destfile="${jar.name}" manifest="./META-INF/MANIFEST.MF">
<fileset dir="${bin}">
<include name="**/*.class"/>
<include name="**/*.txt"/>
<include name="**/*.xml"/>
<include name="**/*.def"/>
<include name="**/*.properties"/>
</fileset>
<fileset dir="." includes="about.html,plugin.xml,.options,schema/**,lib/**,icons/**"/>
</jar>
</target>
<!-- Compile Source Files -->
<target name="compileSource" depends="buildDependency">
<mkdir dir="${bin}"/>
<!-- copy any resource file we needed into the bin directory-->
<copy todir="${bin}">
<fileset dir="${src}">
<include name="**/*.txt"/>
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
</copy>
<!-- Compile the java code from ${src} into ${bin} -->
<javac srcdir="${src}"
destdir="${bin}"
encoding="utf-8"
source="1.4"
debug="true">
<classpath refid="class.path" />
</javac>
</target>
<!-- Build the dependent projects -->
<target name="buildDependency">
<echo message="start call Jar task in ${chart.engine.dir}"/>
<ant dir="${chart.engine.dir}" antfile="BuildChartEngine.xml" target="Jar" inheritAll="false" inheritRefs="false" >
<property name="eclipse.home" value="${eclipse.home}" />
</ant>
<echo message="end call Jar task in ${chart.engine.dir}"/>
<echo message="start call Jar task in ${core.ui.dir}"/>
<ant dir="${core.ui.dir}" antfile="BuildCoreUI.xml" target="Jar" inheritAll="false" inheritRefs="false" >
<property name="eclipse.home" value="${eclipse.home}" />
</ant>
<echo message="end call Jar task in ${core.ui.dir}"/>
</target>
<!-- Export the project, for instance, jar files are copied to a designated folder
the dependency on Jar should implement in top level script by call sequence
Parameters:
- ${export.dir} target directory to put the plugin binaries
- ${plugin.version} the version of plugin exported
-->
<target name="Export">
<copy todir="${export.dir}">
<fileset dir="." includes="${jar.name}"/>
</copy>
</target>
<!-- public task UnitTest will not explicitly depend on complie, Top level script should call compile before calling UnitTest -->
<!-- Run Unit test.
Parameters:
- ${utest.report.dir} target directory to put the unit test report
-->
<target name="UnitTest" depends="compileTest" description="run all the unit tests" />
<!-- Compile Test code -->
<target name="compileTest" />
<!-- Clean all objects created by this script -->
<target name="Clean" description="clean up">
<!-- Delete the binary directory trees -->
<delete dir="${bin}"/>
<delete file="${jar.name}"/>
</target>
<!-- Generate the JavaDoc.
Parameters:
- ${javadoc.dir} target directory to put the java document
-->
<target name="Javadoc">
<mkdir dir="${javadoc.dir}" />
<javadoc destdir="${javadoc.dir}"
author="true"
version="true"
use="true"
doctitle="BIRT Chart UI Extension API (Provisional)"
windowtitle="BIRT Chart UI Project"
source="1.4"
packagenames="${module.name}.*">
<packageset dir="${src}" defaultexcludes="yes" />
<bottom><![CDATA[<i>Copyright © 2005 Actuate Corp. All rights reserved. </i>]]></bottom>
<classpath>
<pathelement path="${bin}"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/defaultAdaptor.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/eclipseAdaptor.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/osgi.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/resolver.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/core.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/console.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.core.runtime_${eclipse.version}/runtime.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.ecore.dir}_${emf.version}/runtime/ecore.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.common.dir}_${emf.version}/runtime/common.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.ecore.xmi.dir}_${emf.version}/runtime/ecore.xmi.jar"/>
<pathelement path="org.eclipse.osgi*.jar"/>
<pathelement path="org.eclipse.core.runtime_*.jar"/>
<pathelement path="org.eclipse.emf.common_*.jar"/>
<pathelement path="org.eclipse.emf.ecore_*.jar"/>
<pathelement path="org.eclipse.emf.ecore.xmi_*.jar"/>
<fileset dir="${core.dir}/lib">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${core.dir}/bin"/>
</classpath>
</javadoc>
</target>
<!-- Generate the public API JavaDoc.
Parameters:
- ${api.javadoc.dir} target directory to put the java document
-->
<target name="apiJavadoc">
<mkdir dir="${api.javadoc.dir}" />
<javadoc destdir="${api.javadoc.dir}"
author="true"
version="true"
use="true"
windowtitle="BIRT Chart UI Extension Interfaces"
doctitle="BIRT Chart UI Extension API (Provisional)"
source="1.4"
packagenames="org.eclipse.birt.chart.ui.swt.interfaces"
sourcepath="${src}" defaultexcludes="yes" >
<bottom><![CDATA[<i>Copyright © 2005 Actuate Corp. All rights reserved. </i>]]></bottom>
<classpath>
<pathelement path="${bin}"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/defaultAdaptor.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/eclipseAdaptor.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/osgi.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/resolver.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/core.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.osgi_${eclipse.version}/console.jar"/>
<pathelement path="${eclipse.home}/plugins/org.eclipse.core.runtime_${eclipse.version}/runtime.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.ecore.dir}_${emf.version}/runtime/ecore.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.common.dir}_${emf.version}/runtime/common.jar"/>
<pathelement path="${eclipse.home}/plugins/${emf.ecore.xmi.dir}_${emf.version}/runtime/ecore.xmi.jar"/>
<pathelement path="org.eclipse.osgi*.jar"/>
<pathelement path="org.eclipse.core.runtime_*.jar"/>
<pathelement path="org.eclipse.emf.common_*.jar"/>
<pathelement path="org.eclipse.emf.ecore_*.jar"/>
<pathelement path="org.eclipse.emf.ecore.xmi_*.jar"/>
<fileset dir="${core.dir}/lib">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${core.dir}/bin"/>
</classpath>
</javadoc>
</target>
<target name="build" depends="Jar" description="package Chart UI files" />
</project>