-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
25 lines (25 loc) · 809 Bytes
/
build.xml
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
<project name="Plant" default="compile" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/classes"/>
</target>
<target name="compile" depends="init">
<javac includeantruntime="false" srcdir="${src}" destdir="${dist}/classes"/>
</target>
<target name="jar" depends="init,compile">
<jar destfile="${dist}/${ant.project.name}.jar" basedir="${dist}/classes">
<manifest>
<attribute name="Main-Class" value="${ant.project.name}"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${dist}/${ant.project.name}.jar" fork="true"/>
</target>
<target name="clean">
<delete dir="${dist}"/>
</target>
</project>