forked from jfager/jdiscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
27 lines (23 loc) · 862 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
26
27
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="jdiscript">
<property name="build.src" value="${basedir}/src" />
<property name="build.out" value="${basedir}/build" />
<property name="build.classes" value="${build.out}/classes" />
<property name="final.name" value="jdiscript" />
<target name="init">
<mkdir dir="${build.classes}" />
</target>
<target depends="init" name="build">
<javac destdir="${build.classes}">
<src path="${build.src}" />
</javac>
</target>
<target name="jar" depends="build">
<mkdir dir="${build.classes}/META-INF" />
<jar jarfile="${build.out}/${final.name}.jar"
basedir="${build.classes}" />
</target>
<target name="clean">
<delete dir="${build.out}" />
</target>
</project>