-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
37 lines (37 loc) · 1.35 KB
/
build.xml
File metadata and controls
37 lines (37 loc) · 1.35 KB
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="all" name="BoxTable">
<property name="version" value="0.1.0"/>
<path id="classpath">
<fileset dir="dependencies" includes="*.jar"/>
</path>
<target name="all" description="Creates binary archive as well as source and javadoc JARs" depends="clean,jar,source,javadoc"/>
<target name="clean" description="Removes old files">
<delete>
<fileset dir="." includes="*.jar"/>
</delete>
</target>
<target name="jar" description="Creates binary JAR archive">
<delete dir="bin"/>
<mkdir dir="bin" />
<javac srcdir="src" destdir="bin" classpathref="classpath" includeantruntime="false" debug="true" debuglevel="lines,vars,source" source="1.8" target="1.8"/>
<jar destfile="BoxTable-${version}.jar">
<fileset dir="bin"/>
<metainf file="LICENSE"/>
</jar>
</target>
<target name="source" description="Creates source archive">
<jar destfile="BoxTable-${version}-sources.jar">
<fileset dir="src"/>
<metainf file="LICENSE"/>
</jar>
</target>
<target name="javadoc" description="Creates javadoc archive">
<delete dir="javadoc"/>
<mkdir dir="javadoc" />
<javadoc sourcepath="src" classpathref="classpath" destdir="javadoc"/>
<jar destfile="BoxTable-${version}-javadoc.jar">
<fileset dir="javadoc"/>
<metainf file="LICENSE"/>
</jar>
</target>
</project>