-
-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathbuild.xml
More file actions
30 lines (26 loc) · 1005 Bytes
/
build.xml
File metadata and controls
30 lines (26 loc) · 1005 Bytes
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
29
30
<?xml version="1.0"?>
<project name="Processing Serial Library" default="build">
<property name="core.path" location="../../../core/library/core.jar" />
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="${core.path}" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ${core.path}" />
<mkdir dir="bin" />
<javac source="17"
target="17"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.path}; library/jssc.jar"
nowarn="true">
</javac>
</target>
<target name="build" depends="compile" description="Build serial library">
<jar basedir="bin" destfile="library/serial.jar" />
</target>
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/serial.jar" />
</target>
</project>