File: build.xml

package info (click to toggle)
libnetx-java 0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 876 kB
  • sloc: java: 5,688; xml: 60; sh: 11; makefile: 7
file content (77 lines) | stat: -rw-r--r-- 2,631 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="UTF-8"?>

<!-- Build for netx: compile, jar, javadoc, clean -->
<project basedir="." default="all" name="netx">

    <!-- all -->
    <target name="all" depends="init,compile,jar">
        <echo message="Application built!"/>
    </target>

    <!-- init -->
    <target name="init">
        <property name="classes" value="classes"/>
        <property name="src" value="src"/>
    </target>

    <!-- compile -->
    <target name="compile" depends="init">
        <mkdir dir="${classes}"/>
        <javac destdir="${classes}" srcdir="${src}" optimize="false" debug="true" deprecation="false"/>
        <copy todir="${classes}">
            <fileset dir="${src}">
               <include name="**/resources/*"/>
               <include name="**/*.gif"/>
               <include name="**/*.png"/>
               <include name="**/*.jpg"/>
               <include name="**/*.jnlp"/>   
               <include name="**/*.class"/>
            </fileset>
        </copy>
    </target>

    <!-- jar -->
    <target name="jar" depends="init,compile">
        <copy file="src/netx/jnlp/resources/default.jnlp" todir="${classes}/"/>
        <jar basedir="${classes}" compress="true" jarfile="netx.jar" manifest="${src}/netx/jnlp/resources/Manifest.mf">
            <exclude name="**/*.java"/>
            <exclude name="**/.xvpics"/>
            <exclude name="netx/**/default.jnlp"/>
            <exclude name="netx/**/Manifest.mf"/>
            <include name="default.jnlp"/>
            <include name="nanoxml/**"/>
            <include name="javax/**"/>
            <include name="netx/jnlp/**"/>
        </jar>
    </target>

    <!-- javadoc -->
    <target name="javadoc" depends="init,compile">
        <delete dir="javadoc"/>
        <mkdir dir="javadoc"/>
        <javadoc destdir="javadoc" packagenames="netx.jnlp.*" access="package"
        Doctitle="Netx v0.5 JavaDoc" Windowtitle="Netx v0.5 JavaDoc"
        Header="&lt;a target=&quot;_top&quot; href=&quot;http://jnlp.sourceforge.net/netx/&quot;&gt;Homepage&lt;/a&gt;">
            <sourcepath>
                <pathelement location="${src}"/>
            </sourcepath>
        </javadoc>
    </target>

    <!-- clean -->
    <target name="clean" depends="init">
        <delete>
            <fileset dir="${classes}">
                <include name="**/*"/>
            </fileset>
        </delete>
        <delete>
            <fileset dir="${src}">
                <include name="**/*.java~"/>
            </fileset>
        </delete>
    </target>

</project>