forked from eclipse-birt/birt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
109 lines (92 loc) · 2.79 KB
/
build.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
<?xml version="1.0"?>
<!--
*************************************************************************
* Copyright (c) 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
*
*************************************************************************
*
*
* This script may also additional targets. These targets are private to this build script only.
*
*
* Notes:
* 1. This file now requires Ant 1.6
*
* Change History:
*
* 1. 05/13/2005: initial version
*
-->
<project name="BIRT map project" default="Jar" basedir=".">
<description>BIRT Map 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 name="eclipse.home" location="." />
<property name="module.name" value="org.eclipse.birt.releng" />
<property name="export.dir" location="export" />
<property name="dir.src" value="src" />
<property name="dir.bin" value="bin" />
<property name="jar.name" value="psf.jar"/>
<path id="class.path">
<pathelement path="${dir.bin}"/>
</path>
<!-- Generate zip for this project.
Input parameters:
eclipse.home
-->
<target name="Jar" depends="compileSource" description="create project jar">
<!-- Create the project jar -->
<jar destfile="${jar.name}">
<fileset dir="${dir.bin}">
<include name="**/*.class"/>
<include name="**/*.txt"/>
<include name="**/*.xml"/>
<include name="**/*.def"/>
<include name="**/*.properties"/>
</fileset>
</jar>
</target>
<target name="compileSource">
<echo message="compile source"/>
<mkdir dir="${dir.bin}"/>
<!-- Compile the java code from ${dir.src} into ${dir.bin} -->
<javac srcdir="${dir.src}"
destdir="${dir.bin}"
encoding="utf-8"
source="1.5"
debug="true">
<classpath refid="class.path"/>
</javac>
</target>
<target name="Export">
</target>
<!-- Clean all objects created by this script -->
<target name="Clean">
</target>
<path id="customjar.classpath">
<fileset dir=".">
<include name="psf.jar"/>
</fileset>
</path>
<target name="generate">
<java classname="ConvertMapToPsf">
<classpath refid="customjar.classpath" />
<arg value="HEAD" />
<arg value="HEAD" />
</java>
</target>
</project>