forked from sparks/themidibus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
55 lines (45 loc) · 1.5 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
<!--
Generic Ant build.xml file for Processing libraries
Severin Smith
http://www.smallbutdigital.com
-->
<project name="themidibus" basedir="." default="main">
<property name="core.dir" value="/Applications/Processing.app/Contents/Java/"/>
<property name="core-lib.dir" value="/Applications/Processing.app/Contents/Java/"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="ref.dir" value="reference"/>
<path id="classpath">
<fileset dir="${core.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${core-lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" sourcepath="" destdir="${build.dir}" classpathref="classpath">
<exclude name="**/PApplet.java"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="library"/>
<jar destfile="library/${ant.project.name}.jar" basedir="${build.dir}"/>
</target>
<target name="doc">
<mkdir dir="${ref.dir}"/>
<javadoc sourcepath="${src.dir}" destdir="${ref.dir}" author="true" version="true" classpathref="classpath"/>
</target>
<target name="zip">
<zip destfile="${ant.project.name}.zip">
<zipfileset dir="." excludes="**/*.DS_Store, .gitignore, **/.git, **/.git/**/*, TODO.txt" prefix="${ant.project.name}"/>
</zip>
</target>
<target name="main" depends="jar">
<antcall target="clean"/>
</target>
</project>