build.xml 521 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<project name="example-app" default="package" basedir=".">

	<target name="compile">
		<mkdir dir="bin" />
		<javac srcdir="src" destdir="bin" debug="true" includeAntRuntime="false">
		</javac>
	</target>

	<target name="package" depends="compile">
		<mkdir dir="build" />
		<jar basedir="bin" destfile="build/example-app.jar">
			<manifest>
				<attribute name="Main-Class" value="Main" />
			</manifest>
		</jar>
	</target>

	<target name="clean">
		<delete dir="bin" />
		<delete dir="build" />
	</target>

</project>