Create build.xml
This commit is contained in:
parent
ec2a47e123
commit
52dc7474fd
1 changed files with 29 additions and 0 deletions
29
build.xml
Normal file
29
build.xml
Normal 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>
|
Reference in a new issue