<project default="run">
<target name="clean">
<delete dir="bin"/>
<delete dir="exe"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin"/>
<target name="test" depends="compile">
<target name="jar" depends="compile">
<mkdir dir="exe"/>
<jar destfile="exe/HelloWorld.jar" basedir="bin">
<manifest>
<attribute name="Main-Class" value="org.sdf.HelloWorld"/>
</manifest>
</jar>
<target name="run" depends="jar">
<java jar="exe/HelloWorld.jar" fork="true"/>
</project>