-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
27 lines (23 loc) · 895 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
<!-- DLT ANT build system -->
<project name="DLT" default="jar" basedir=".">
<description>
Ant build system for Direct Linear Transformation
</description>
<!-- set global properties for this build -->
<property environment="env"/>
<property name="JAVA_HOME" location="${env.JAVA_HOME}" />
<property name="javasrc" location="src/" />
<property name="build" location="build" />
<property name="classes" location="${build}/java" />
<!-- Initialize -->
<target name="javacompile" description="Compile Java source" >
<mkdir dir="${classes}"/>
<javac source="8" srcdir="${javasrc}" destdir="${classes}" encoding="UTF-8" nowarn="on">
<compilerarg line="-Xmaxerrs 5"/>
</javac>
</target>
<target name="jar" depends="javacompile" description="Create Jar file" >
<jar jarfile="DLT.jar" basedir="${classes}" manifest="manifest/MANIFEST.MF">
</jar>
</target>
</project>