aboutsummaryrefslogtreecommitdiffstats
path: root/coreAPI/build.xml
blob: a87fdd6e52b8022d370022aa24d514c704389317 (plain)
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
<?xml version="1.0"?>

<project name="Game Input API" basedir="." default="all">
    <target name="init">
		<property name="utils" location="../lib/jutils.jar"/>    
        <mkdir dir="apidocs"/> 
        <mkdir dir="classes"/> 
        <mkdir dir="bin"/> 
    </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/**"/>
            <!-- To add something to the classpath: -->
            <classpath>
                <pathelement location="${utils}"/>
            </classpath>
        </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">
            <sourcepath>
                <pathelement location="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"/>
    </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>