File: build-swt.xml

package info (click to toggle)
libjfreechart-java 1.0.19-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 15,156 kB
  • ctags: 17,171
  • sloc: java: 144,342; xml: 986; makefile: 29
file content (106 lines) | stat: -rw-r--r-- 3,922 bytes parent folder | download | duplicates (2)
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
<project name="jfreechart-swt" default="all" basedir="..">

    <!-- Initialisation. -->
    <target name="initialise" description="Initialise required settings.">
        <tstamp />
        <property name="jfreechart.name" value="jfreechart" />
        <property name="jfreechart.version" value="1.0.19" />
        <property name="jcommon.name" value="jcommon" />
        <property name="jcommon.version" value="1.0.23" />
        <property name="builddir" value="${basedir}/build" />
        <property name="jcommon.jar" value="/usr/share/java/${jcommon.name}.jar"/>
        <property name="jfreechart.jar" value="${basedir}/lib/${jfreechart.name}-${jfreechart.version}.jar"/>
        <!-- Edit the next line to link to the swt library you want, see README file in the swt folder -->
        <property name="swt.jar" value="/usr/share/java/swt4.jar"/>
        <path id="build.classpath">
            <pathelement location="${jcommon.jar}"/>
            <pathelement location="${jfreechart.jar}"/>
            <pathelement location="${swt.jar}"/>
        </path>

    </target>

    <!-- Compile the JFreeChart SWT classes -->
    <target name="compile-swtgraphics" depends="initialise"
            description="Compile and package some utility SWT source code.">

        <!-- create a temp build directory -->
        <mkdir dir="${basedir}/build" />

        <!-- compile the source -->
        <javac srcdir="${basedir}/swt"
               destdir="${basedir}/build"
               debug="on"
               deprecation="on"
               source="1.6"
               target="1.6"
               includeantruntime="false">
            <classpath refid="build.classpath" />
            <include name="org/jfree/experimental/swt/**/*.java"/>
        </javac>

        <!-- make the jar -->
        <jar jarfile="${basedir}/lib/swtgraphics2d.jar"
             basedir="${basedir}/build" >
        </jar>

        <!-- delete the temp directory -->
        <delete dir="${basedir}/build" />

    </target>

    <!-- Compile the JFreeChart SWT classes -->
    <target name="compile-swt" depends="initialise"
            description="Compile and package the JFreeChart SWT source code.">

        <!-- create a temp build directory -->
        <mkdir dir="${basedir}/build" />

        <!-- compile the source -->
        <javac srcdir="${basedir}/swt"
               destdir="${basedir}/build"
               debug="on"
               deprecation="on"
               source="1.6"
               target="1.6"
               includeantruntime="false">
            <classpath refid="build.classpath" />
            <include name="org/jfree/experimental/chart/**/*.java"/>
        </javac>

        <!-- make the jar -->
        <jar jarfile="${basedir}/lib/${jfreechart.name}-${jfreechart.version}-swt.jar"
             basedir="${basedir}/build" >
        </jar>

        <!-- delete the temp directory -->
        <delete dir="${basedir}/build" />

    </target>

    <!-- Generate the JFreeChart SWT source code jar -->
    <target name="source-jar-swt" depends="initialise"
            description="Package the JFreeChart SWT source code in a jar">
        <!-- create a temp build directory -->
        <mkdir dir="${basedir}/source-jar-swt"/>
        <!-- copy source code -->
        <copy todir="${basedir}/source-jar-swt/">
            <fileset dir="${basedir}/swt"/>
        </copy>
        <!-- make the jar -->
        <jar jarfile="${basedir}/lib/${jfreechart.name}-${jfreechart.version}-swt-src.jar"
             basedir="${basedir}/source-jar-swt">
        </jar>
        <!-- delete the temp directory -->
        <delete dir="${basedir}/source-jar-swt"/>
    </target>

    <!-- ALL -->
    <target name="all"
            depends="compile-swtgraphics,compile-swt,source-jar-swt"
            description="Compiles and package in jar files all the SWT related code in JFreeChart.">

    </target>

</project>