-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-evaluator.xml
55 lines (46 loc) · 1.74 KB
/
build-evaluator.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
<project default="jar">
<property name="lib" location="lib"/>
<property name="runner" value="org.semanticweb.ore.execution.ReasonerQueryEvaluator"/>
<property name="build" value="build"/>
<property name="src" location="src"/>
<path id="project.class.path">
<fileset dir="lib">
</fileset>
</path>
<target name="clean" description="Cleaning up build files...">
<delete dir="${build}"/>
</target>
<target name="compile" description="Compile source files" depends="clean">
<mkdir dir="${build}"/>
<javac target="1.6" source="1.6" srcdir="${src}" destdir="${build}" debug="yes" deprecation="yes" includeantruntime="false">
<classpath refid="project.class.path"/>
</javac>
<copy todir="${build}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy todir="${build}">
<fileset dir="log4j">
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<pathconvert dirsep="/" pathsep=" " property="Class-Path">
<map from="${lib}/" to="./lib/"/>
<map from="${lib}\" to="./lib/"/>
<path>
<fileset dir="lib">
<include name="**/*.jar"/>
<include name="**/*.properties"/>
</fileset>
</path>
</pathconvert>
<jar jarfile="ReasonerQueryEvaluator.jar" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="${Class-Path}"/>
<attribute name="Main-Class" value="${runner}"/>
</manifest>
</jar>
</target>
</project>