-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
70 lines (64 loc) · 3.02 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
<project name="S-Match" default="jar" basedir=".">
<description>S-Match - semantic matching algorithms library</description>
<target name="init" depends="clean">
<tstamp/>
<mkdir dir="classes"/>
<mkdir dir="build"/>
<mkdir dir="dist"/>
<property name="jar-name" location="build/s-match.jar"/>
<property name="gui-jar-name" location="build/s-match-gui.jar"/>
<property name="zip-name" location="dist/s-match-${DSTAMP}.zip"/>
<property name="src-zip-name" location="dist/s-match-${DSTAMP}-src.zip"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="src" destdir="classes" encoding="utf-8" includeantruntime="false">
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<copy todir="classes">
<fileset dir="res"/>
</copy>
</target>
<target name="jar" depends="compile" description="generate the jar">
<mkdir dir="build"/>
<jar jarfile="${jar-name}" basedir="classes" excludes="s-match.ico tango-icon-theme-0.8.90/** relations/** it/unitn/disi/smatch/gui/**"/>
<jar jarfile="${gui-jar-name}" basedir="classes" includes="s-match.ico tango-icon-theme-0.8.90/** relations/** it/unitn/disi/smatch/gui/**"/>
</target>
<target name="dist" depends="jar,javadoc" description="generate the distribution zip file">
<loadfile property="readme" srcFile="readme.txt"/>
<zip destfile="${zip-name}" basedir="${basedir}" level="9"
preserve0permissions="true"
comment="${readme}"
includes="bin/** build/** conf/** data/wordnet/2.1/** demos/** doc/** lib/** res/** src/** test/** test-data/cw/*.txt test-data/cw-simplified/*.txt test-data/spsm/*.txt build.xml license.txt readme.txt pad_file.xml"/>
</target>
<target name="javadoc" depends="" description="generate the javadoc">
<delete dir="doc/api"/>
<javadoc packagenames="it.unitn.disi.smatch.*"
sourcepath="src"
defaultexcludes="yes"
destdir="doc/api"
author="true"
version="true"
use="true"
encoding="utf8"
docencoding="utf8"
windowtitle="S-Match API">
<bottom>
<![CDATA[<i>© 2010-2011 <a href="http://disi.unitn.it/~knowdive/">Knowdive</a> @ <a href="http://disi.unitn.it/">DISI</a></i>]]></bottom>
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
<target name="clean" description="clean up">
<delete dir="classes"/>
<delete dir="dist"/>
<delete dir="build"/>
<delete dir="doc/api"/>
</target>
</project>