-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
46 lines (40 loc) · 1.34 KB
/
build.xml
File metadata and controls
46 lines (40 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<project name="ArduinoWithStreams" basedir="." default="install">
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<!-- jar include paths -->
<path id="jar.include">
<fileset dir="jar/p5">
<include name="core.jar" />
<include name="serial.jar" />
</fileset>
</path>
<!-- clean -->
<target name="clean">
<delete dir="classes" failonerror="false" />
<delete dir="jar/ArduinoWithStreams" failonerror="false" />
<delete file="library/ArduinoWithStreams.jar" failonerror="false" />
</target>
<!-- compile -->
<target name="compile">
<mkdir dir="classes" />
<javac srcdir="src" destdir="classes">
<classpath>
<path refid="jar.include" />
</classpath>
</javac>
</target>
<!-- jar -->
<target name="jar" depends="compile">
<mkdir dir="jar/ArduinoWithStreams" />
<jar destfile="jar/ArduinoWithStreams/ArduinoWithStreams.jar" basedir="classes" />
</target>
<!-- install -->
<target name="install" depends="jar">
<copy todir="library">
<fileset dir="jar/ArduinoWithStreams" includes="ArduinoWithStreams.jar" />
</copy>
</target>
<target name="help" />
</project>