-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
72 lines (54 loc) · 2.48 KB
/
build.xml
File metadata and controls
72 lines (54 loc) · 2.48 KB
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
<?xml version="1.0" ?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project name="SWTChartPlus JAR lib" default="Package">
<!-- ===================== Property Definitions =========================== -->
<property name="bin.dir" value="bin" />
<property name="dist.dir" value="dist" />
<property name="src.dir" value="SWTChartPlus" />
<property name="jar.name" value="swtchartplus.jar"/>
<!-- ===================== Property Definitions =========================== -->
<!-- =================================================================================
EDIT THESE OPTIONS
================================================================================== -->
<!-- The path to the folder where Eclipse is installed should be set-->
<!-- property name="eclipse.home" value="/opt/eclipse" / -->
<!-- =================================================================================
/ EDIT THESE OPTIONS
================================================================================== -->
<!-- Libraries on which the project depends -->
<path id="classpath.base">
<fileset file="${eclipse.home}/plugins/org.eclipse.core.commands_*.jar"/>
<fileset file="${eclipse.home}/plugins/org.eclipse.jface_*.jar"/>
<fileset file="${eclipse.home}/plugins/org.eclipse.swt*jar"/>
</path>
<!-- ===================== Tasks =========================== -->
<target name="CheckClasspath">
<condition property="eclipse.home.set">
<isset property="eclipse.home" />
</condition>
<fail unless="eclipse.home.set" message="Please, set the [eclipse.home] property" />
</target>
<target name="Clean" depends="CheckClasspath">
<delete dir="${bin.dir}" />
<delete dir="${dist.dir}" />
</target>
<target name="Init" depends="Clean">
<mkdir dir="${bin.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="Compile" depends="Init">
<javac srcdir="${src.dir}" destdir="${bin.dir}" includes="**/*.java">
<classpath refid="classpath.base" />
</javac>
</target>
<target name="CreateJAR" depends="Compile">
<jar destfile="${dist.dir}/${jar.name}">
<fileset dir="${bin.dir}"/>
</jar>
</target>
<!-- ======================================= MAIN TARGET =============================================== -->
<!-- Main target -->
<target name="Package" depends="CreateJAR">
<echo>OK</echo>
</target>
</project>