1
0
Fork 0

Create build.xml

This commit is contained in:
mrdev023 2016-08-28 20:53:37 +02:00 committed by GitHub
parent ec2a47e123
commit 52dc7474fd

29
build.xml Normal file
View file

@ -0,0 +1,29 @@
<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>
<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>
<target name="run" depends="jar">
<java jar="exe/HelloWorld.jar" fork="true"/>
</target>
</project>