forked from ignazio1977/ore-2014-competition-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-wrapper-v1.xml
50 lines (41 loc) · 1.58 KB
/
build-wrapper-v1.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
<project default="jar">
<property name="lib" location="lib"/>
<property name="runner" value="org.semanticweb.ore.wrappers.OREv1ReasonerWrapper"/>
<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>
</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"/>
</fileset>
</path>
</pathconvert>
<jar jarfile="OREv1ReasonerWrapper.jar" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="${Class-Path}"/>
<attribute name="Main-Class" value="${runner}"/>
</manifest>
</jar>
</target>
</project>