forked from vialab/SMT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
61 lines (55 loc) · 1.37 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
60
61
<project>
<!-- properties -->
<property name="lib.dir" value="lib"/>
<property name="docs_dir" value="javadoc"/>
<!-- stuff -->
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${lib.dir}/processing" includes="**/*.jar"/>
</path>
<!-- targets -->
<target name="clean">
<delete dir="bin/vialab"/>
<delete dir="javadoc"/>
<delete dir="SMT"/>
<delete file="SMT.zip"/>
<delete file="library/SMT.jar"/>
</target>
<target name="compile">
<javac srcdir="src" destdir="bin"/>
</target>
<target name="jar" depends="compile">
<jar destfile="library/SMT.jar">
<fileset dir="bin"/>
<fileset dir="resources"/>
</jar>
</target>
<target name="build" depends="compile,jar">
</target>
<target name="package" depends="build">
<!-- copy files to SMT folder -->
<mkdir dir="SMT"/>
<copy todir="SMT">
<fileset dir="examples"/>
</copy>
<fileset dir="library"/>
<copy todir="SMT">
</copy>
<copy todir="SMT">
<fileset dir="${docs_dir}"/>
</copy>
<copy todir="SMT">
<fileset dir="src"/>
</copy>
<copy todir="SMT">
<fileset dir="tests"/>
</copy>
<copy file="library.properties" todir="SMT">
<copy file="release_notes.md" todir="SMT">
<copy file="readme.md" todir="SMT">
<!-- zip up files -->
<zip destfile="SMT.zip" basedir="SMT"/>
<!-- clean up -->
<delete dir="SMT"/>
</target>
</project>