/
build.xml
64 lines (56 loc) · 2.29 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
<project name="TimeSieve" default="compile" basedir=".">
<property name="build.path" value="${basedir}/target/classes" />
<property name="source.path" value="${basedir}/src/main/java" />
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<property name="compile.source" value="1.6" />
<property name="compile.target" value="1.6" />
<!-- <property name="compile.encoding" value="utf-8" /> -->
<target name="classpath" description="Sets the classpath">
<echo message="${ant.project.name}" />
<path id="classpath">
<pathelement path="${basedir}/lib/jdom.jar"/>
</path>
</target>
<target name="clean" description="Delete old classes">
<echo message="${ant.project.name}" />
<delete includeemptydirs="true">
<fileset dir="${build.path}/" includes="**/*"/>
</delete>
</target>
<target name="compile" depends="classpath"
description="Compile core sources">
<echo message="${ant.project.name}" />
<mkdir dir="${build.path}" />
<javac srcdir="${source.path}"
destdir="${build.path}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
source="${compile.source}"
target="${compile.target}">
<!-- encoding="${comiple.encoding}" -->
<classpath refid="classpath" />
<!-- <compilerarg value="-Xmaxerrs"/>
<compilerarg value="20"/> -->
<!-- <compilerarg value="-Xlint"/> -->
</javac>
</target>
<target name="all" depends="clean,compile"
description="Clean and re-compile." />
<!-- This runs the specified class, using a separate Java VM -->
<!-- Specify class to run via "run.class," arg, i.e., -->
<!-- ant run -Drun.class=edu.stanford.nlp.tagger.maxent.MaxentTaggerGUI -->
<!-- Use "jvmarg" to pass arguments to the VM, use "arg" to pass cmdline args to the class -->
<target name="run" depends="classpath">
<java classname="${run.class}" fork="true" jvm="java">
<jvmarg value="-Xmx2g"/>
<jvmarg value="-server"/>
<classpath>
<path refid="classpath"/>
<pathelement path="${build.path}"/>
</classpath>
</java>
</target>
</project>