-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
59 lines (53 loc) · 2.04 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<project name="Processing Simple Touch Library" default="build">
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/simpletouch.jar" />
</target>
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="../processing/core/library/core.jar" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../processing/core/library/core.jar" />
<mkdir dir="bin" />
<javac source="1.7"
target="1.7"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="../processing/core/library/core.jar"
nowarn="true">
<compilerclasspath path="../../mode/org.eclipse.jdt.core.jar;
../../mode/jdtCompilerAdapter.jar" />
</javac>
</target>
<target name="javadoc">
<javadoc bottom="Processing Library Simple Touch by Gottfried Haider"
classpath="../processing/core/library/core.jar"
destdir="reference"
verbose="false"
stylesheetfile="reference/stylesheet.css"
doctitle="Javadocs: Simple Touch"
public="true" version="false"
windowtitle="Javadocs: Simple Touch">
<fileset dir="src/gohai" defaultexcludes="yes">
<!-- add packages to be added to reference. -->
<include name="**/*"/>
</fileset>
</javadoc>
</target>
<target name="build" depends="compile" description="Build Simple Touch library">
<jar basedir="bin" destfile="library/simpletouch.jar" />
</target>
<target name="dist" depends="build,javadoc">
<zip destfile="../processing-simpletouch.zip">
<zipfileset dir="." prefix="simpletouch">
<exclude name="bin/**"/>
<exclude name="examples/**/application.*/**"/>
<exclude name="**/sftp-config.json"/>
</zipfileset>
</zip>
<copy file="library.properties"
toFile="../processing-simpletouch.txt"/>
</target>
</project>