-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
43 lines (40 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
<?xml version="1.0"?>
<!--
/*
* This software copyright by various authors including the RPTools.net
* development team, and licensed under the LGPL Version 3 or, at your
* option, any later version.
*
* Portions of this software were originally covered under the Apache
* Software License, Version 1.1 or Version 2.0.
*
* See the file LICENSE elsewhere in this distribution for license details.
*/
-->
<project name="sbbi-upnplib" default="compile">
<path id="classpath">
<fileset dir="buildlibs" includes="**/*.jar"/>
</path>
<property file="src/net/sbbi/upnp/version.properties" />
<property name="dist" value="dist" />
<!-- What's a better way of handling the 'debug' property? -->
<property name="debug" value="off" />
<property name="debugext" value="nodebug" />
<target name="clean" description="remove intermediate files">
<delete dir="classes"/>
</target>
<target name="compile" depends="clean" description="compile the Java source code to class files">
<mkdir dir="classes"/>
<javac srcdir="src" destdir="classes" classpathref="classpath"
deprecation="on"
debug="${debug}"
includeAntRuntime="no">
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="jar" depends="compile" description="create a Jar file for the application">
<jar destfile="${dist}/sbbi-upnplib-${release.version}-${debugext}.jar">
<fileset dir="classes" includes="**/*.class,**/*.properties"/>
</jar>
</target>
</project>