-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
65 lines (59 loc) · 2.02 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
<!--
/*
* Copyright 2014 Jeffrey Bosboom.
* This file is part of windowlib.
*
* windowlib 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.
*
* windowlib 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 windowlib. If not, see <http://www.gnu.org/licenses/>.
*/
-->
<project name="windowlib" basedir="." default="jar"
xmlns:if="ant:if" xmlns:unless="ant:unless"
>
<target name="fetch">
<mkdir dir="lib"/>
<mkdir dir="lib/doc"/>
<mkdir dir="lib/src"/>
<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"/>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="build">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" debug="true" includeantruntime="false">
<classpath>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<copy todir="build/classes">
<fileset dir="src" excludes="**/*.java"/>
</copy>
</target>
<target name="jar" depends="build">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/windowlib.jar" basedir="build/classes">
</jar>
</target>
<target name="clean-build" depends="clean,jar"/>
</project>