forked from jacobeisenstein/bayes-seg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
71 lines (68 loc) · 2.43 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
<project name="bayesseg" default="build">
<description>Build the source for the Bayesian discourse segmentation described in Eisenstein and Barzilay (2008)</description>
<property name="src" location="source"/>
<property name="build" location="classes"/>
<property name="docs" location="doc"/>
<property name="JAVA_HOME" location="/usr/lib/jvm/java-7-openjdk-amd64"/>
<path id="class.path">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${build}"/>
</path>
<target name="build">
<!-- Compile the java code -->
<javac srcdir="${src}"
destdir="${build}"
classpathref="class.path"
debug = "on"
debuglevel="lines,vars,source"
includejavaruntime="true"
includeantruntime="false"
/>
</target>
<target name="clean">
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="rebuild" depends="clean,build"/>
<target name="save">
<tar destfile="../bayesseg.tar.gz"
compression="gzip">
<tarfileset dir = "." prefix="bayesseg">
<exclude name="data/icsi/transcripts"/>
<exclude name="data/icsi/transcripts/**/*"/>
<exclude name="data/icsi/para_experiment"/>
<exclude name="data/icsi/para_experiment/**/*"/>
<exclude name="data/icsi/choi_segment"/>
<exclude name="data/icsi/choi_segment/**/*"/>
<exclude name="baselines/lcseg"/>
<exclude name="baselines/lcseg/**/*"/>
</tarfileset>
</tar>
</target>
<target name="docs" depends="build">
<delete dir="${docs}/api" quiet="true"/>
<mkdir dir="${docs}/api" />
<javadoc
packagenames="edu.mit.*"
sourcepath="${src}"
additionalparam="-breakiterator"
destdir="${docs}/api"
classpathref="class.path"
version="true"
author="true"
use="true"
source="1.5"
maxmemory="512M"
overview="${docs}/overview.html"
windowtitle="Bayesian Discourse Segmentation Specification">
<link href="http://java.sun.com/j2se/1.5/docs/api"/>
<link href="http://acs.lbl.gov/~hoschek/colt/api"/>
<link href="http://people.csail.mit.edu/igorm/acl06/docs/api"/>
<!-- maybe put a link to Igor's javadoc??-->
<bottom><![CDATA[<i>Copyright © 2008 MIT. All Rights Reserved.</i>]]></bottom>
<doctitle>"Bayesian Discourse Segmentation Specification"</doctitle>
</javadoc>
</target>
</project>