This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
73 lines (64 loc) · 1.86 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
<project>
<property name="kiskit.version" value="0.2.0-SNAPSHOT"/>
<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${lib.dir}" includes="*.jar"/>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<condition property="isWindows">
<os family="windows"/>
</condition>
<condition property="javac_executable" value="/usr/bin/javac">
<not>
<isset property="isWindows"/>
</not>
</condition>
<!-- in windows, the following assumes that java_home points to the root of a JDK -->
<condition property="javac_executable" value="${java.home}/../bin/javac.exe">
<isset property="isWindows"/>
</condition>
<target name="build">
<copy todir="build/classes">
<fileset dir="src">
<patternset>
<include name="**/*.rdf"/>
<include name="**/*.csv"/>
<include name="**/*.ttl"/>
<include name="**/*.xml"/>
</patternset>
</fileset>
</copy>
<echo message="Javac executable is: ${javac_executable}" />
<mkdir dir="build/classes"/>
<javac
srcdir="src"
destdir="build/classes"
classpathref="classpath"
debug="true"
debuglevel="lines,vars,source"
fork="yes"
encoding="UTF-8"
executable="${javac_executable}"
compiler="javac1.5"
/>
</target>
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/kiskit-${kiskit.version}.jar" basedir="build/classes">
<restrict>
<!-- name name="**/*.class"/ -->
<archives>
<zips>
<fileset dir="lib" includes="**/*.jar"/>
</zips>
</archives>
</restrict>
<manifest>
<attribute name="Main-Class" value="uk.ac.open.data.kiskit.UnistatsToNTriple"/>
</manifest>
</jar>
</target>
</project>