-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
78 lines (70 loc) · 2.69 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--
/*
* Copyright 2014 Jeffrey Bosboom.
* This file is part of stratabot.
*
* stratabot is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* stratabot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with stratabot. If not, see <http://www.gnu.org/licenses/>.
*/
-->
<project name="stratabot" basedir="." default="jar">
<target name="fetch">
<mkdir dir="lib"/>
<mkdir dir="lib/doc"/>
<mkdir dir="lib/src"/>
<!-- use a local windowlib jar if available -->
<copy file="../windowlib/build/jar/windowlib.jar"
tofile="lib/windowlib.jar"
failonerror="false" quiet="true" />
<get src="https://github.com/jbosboom/windowlib/releases/download/20141121/windowlib.jar"
dest="lib/windowlib.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/nativelibs4java/bridj/0.6.2/bridj-0.6.2-c-only.jar"
dest="lib/bridj.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/nativelibs4java/bridj/0.6.2/bridj-0.6.2-javadoc.jar"
dest="lib/doc/bridj-doc.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/nativelibs4java/bridj/0.6.2/bridj-0.6.2-sources.jar"
dest="lib/src/bridj-src.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/google/guava/guava/17.0/guava-17.0.jar"
dest="lib/guava.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/google/guava/guava/17.0/guava-17.0-javadoc.jar"
dest="lib/doc/guava-doc.jar"
skipexisting="true"/>
<get src="http://search.maven.org/remotecontent?filepath=com/google/guava/guava/17.0/guava-17.0-sources.jar"
dest="lib/src/guava-src.jar"
skipexisting="true"/>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" debug="true" includeantruntime="false">
<classpath>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/stratabot.jar" basedir="build/classes">
</jar>
</target>
<target name="clean-build" depends="clean,jar"/>
</project>