forked from HeartlandSoftware/HSS_Java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
28 lines (24 loc) · 940 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
28
<?xml version="1.0"?>
<project name="HSS_Java" default="dist" basedir=".">
<property name="src" location="src/main/java" />
<property name="build" location="bin" />
<property name="dist" location="." />
<property name="projname" value="HSS_Java"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="clean,init" description="Compile the source">
<javac includeantruntime="false" debug="false" srcdir="${src}" destdir="${build}" includes="**/*.java" target="1.8" />
</target>
<target name="dist" depends="compile" description="Generate the jar file">
<echo>Building ${projname}</echo>
<jar jarfile="${dist}/HSS_Java.jar">
<fileset dir="${build}" />
</jar>
</target>
<target name="clean" description="Clean the output directories">
<delete failonerror="false" dir="${build}" />
<delete failonerror="false" file="${dist}/HSS_Java.jar" />
</target>
</project>