aboutsummaryrefslogtreecommitdiffstats
path: root/applet/build.xml
blob: 562a19ff1c24f5d776be10159c6ff0cca844a9de (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
<?xml version="1.0"?>

<project name="applet" basedir="." default="jar">
	
	<target name="clean">
		<delete dir="dist" failonerror="true"/>
	</target>
	
	<target name="init">
		<mkdir dir="classes"/>
		<mkdir dir="dist"/>
	</target>
	
    <target name="compile" depends="init">
        <javac srcdir="src" destdir="classes" debug="true" deprecation="true" source="1.4" target="1.4">
            <classpath>
				<pathelement location="../dist/jinput.jar"/>
				<pathelement location="../dist/jinput-test.jar"/>
            </classpath>
		</javac>
	</target>
	
	<target name="jar" depends="compile">
        <jar jarfile="dist/jinput-applet-test.jar" compress="true" basedir="classes">
            <include name="**/*.class"/>
        </jar> 
	</target>
	
	<target name="dist" depends="jar">
		<copy todir="dist">
			<fileset dir="../webstart/dist/"/>
		</copy>
	</target>
</project>