File: build.xml

package info (click to toggle)
jinput 20100502+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,192 kB
  • ctags: 3,159
  • sloc: java: 9,641; xml: 1,026; ansic: 922; awk: 34; makefile: 32; sh: 11
file content (69 lines) | stat: -rw-r--r-- 2,553 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
<?xml version="1.0"?>

<project name="Game Input API" basedir="." default="all">
    <target name="init">
		<property name="utils" location="/usr/share/java/jutils.jar"/>    
        <mkdir dir="apidocs"/> 
        <mkdir dir="classes"/> 
        <mkdir dir="bin"/> 
    	<mkdir dir="build"/>
    </target>

    <target name="compile" depends="init">
		<javac srcdir="src/java" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4">
			<include name="net/**"/>
			<exclude name="**/Version.java"/>
			<!-- To add something to the classpath: -->
			<classpath>
				<pathelement location="${utils}"/>
			</classpath>
		</javac>
    	<buildnumber/>
		<copy file="src/java/net/java/games/input/Version.java" 
    		 todir="build/src/java/net/java/games/input/" overwrite="true">
			<filterset>
				<filter token="BUILD_NUMBER" value="${build.number}"/>
			</filterset>
		</copy>
		<javac srcdir="build/src/java" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4">
			<include name="net/**" />
		</javac>
    </target>

    <target name="jar" depends="init,compile">
        <jar jarfile="bin/jinput-core.jar" compress="true" basedir="classes">
			<include name="net/java/games/input/*class"/>
        </jar>
        <jar jarfile="bin/jinput-test.jar" compress="true" basedir="classes">
			<include name="net/java/games/input/test/*class"/>
        </jar>
    </target>

    <target name="javadoc" depends="init" description="Javadoc for my API.">
        <javadoc packagenames="net.java.games.input.*" 
                 destdir="apidocs" 
                 additionalparam="-source 1.4"
	        	 excludepackagenames="net.java.games.input.example.*,net.java.games.input.test.*">
            <link href="/usr/share/doc/default-jdk-doc/api/" />
            <link href="/usr/share/doc/libjutils-java-doc/api/" />
            <sourcepath>
                <pathelement location="src/java"/>
                <pathelement location="../plugins/linux/src/java"/>
            </sourcepath>
             <classpath>
                <pathelement location="${utils}"/>
            </classpath>
        </javadoc>
    </target>

    <target name="clean" depends="init" description="Clean all build products.">
		<delete dir="classes"/>
		<delete dir="bin"/>
		<delete dir="apidocs"/>
		<delete dir="build"/>
    </target>
    
    <target name="all" depends="init,jar" description="Build everything.">
        <echo message="JInput has been built and jinput.jar is located in the bin directory."/>
	</target>    
</project>