-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
62 lines (56 loc) · 2.11 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
<project default="build">
<property name="lib" location="lib"/>
<property name="build" value="build"/>
<property name="src" location="src"/>
<property name="doc" location="${build}/javadoc"/>
<property name="runner" value="uk.ac.manchester.cs.modularity.owlme.ModuleExtractorView"/>
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="build" depends="jar, javadoc"/>
<!-- Clean -->
<target name="clean" description="Clean up build files">
<delete dir="${build}"/>
</target>
<!-- Compile -->
<target name="compile" description="Compile source files" depends="clean">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" debug="yes" deprecation="yes" includeantruntime="false">
<classpath refid="classpath"/>
</javac>
<copy todir="${build}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<!-- Create JAR -->
<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="owl-me.jar" basedir="${build}">
<manifest>
<attribute name="Class-Path" value="${Class-Path}"/>
<attribute name="Main-Class" value="${runner}"/>
</manifest>
</jar>
</target>
<!-- Generate Javadoc -->
<target name="javadoc" description="Generate documentation">
<javadoc packagenames="src" sourcepath="${src}" destdir="${doc}" nodeprecatedlist="yes" nodeprecated="yes">
<fileset dir="${src}">
<include name="**"/>
</fileset>
<classpath refid="classpath"/>
</javadoc>
</target>
</project>