-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
42 lines (36 loc) · 1.28 KB
/
build.xml
File metadata and controls
42 lines (36 loc) · 1.28 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
38
39
40
41
42
<?xml version="1.0" encoding="utf-8" ?>
<project name="tvdblibrary" default="jar" basedir=".">
<!-- Path Properties -->
<property name="src" location="src" />
<property name="out" location="build/out" />
<property name="build" location="build" />
<!-- Classpath needed: gson in libs -->
<path id="classpath">
<fileset dir="libs" includes="**/*.jar" />
</path>
<target name="compile" description="Compile source" depends="clean">
<mkdir dir="${build}" />
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" debug="true"/>
</target>
<!-- Timestamp for manifest -->
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<!-- Javac Build, packing up jar -->
<target name="jar" description="Package into JAR" depends="compile">
<jar destfile="${out}/tvdblibrary.jar" basedir="${build}"
compress="true">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Built-Date" value="${TODAY}" />
<attribute name="Implementation-Title" value="TVDB-Library" />
</manifest>
</jar>
</target>
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete>
<fileset dir="." includes="*.class" />
</delete>
</target>
</project>