-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
39 lines (34 loc) · 1.36 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="compile" name="project3">
<property name="debuglevel" value="source,lines,vars"/>
<property name="src-dir" location="src" />
<property name="obj-dir" location="bin" />
<property name="lib-dir" location="lib" />
<property name="extlib-dir" location="/usr/local/share/java" />
<property environment="env" />
<path id="classpath">
<fileset dir="${lib-dir}" includes="**/*.jar"/>
<fileset dir="${extlib-dir}" includes="**/*.jar"/>
<pathelement location="${obj-dir}"/>
</path>
<target name="init">
<mkdir dir="${obj-dir}" />
<mkdir dir="${lib-dir}" />
</target>
<target name="clean">
<delete dir="${obj-dir}" />
<delete file="project3a.zip" />
</target>
<target name="compile" depends="init">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" srcdir="${src-dir}" destdir="${obj-dir}" includes="edu/ucla/cs/cs144/*.java">
<classpath refid="classpath"/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="edu.ucla.cs.cs144.Indexer" failonerror="true" fork="yes">
<classpath refid="classpath"/>
<jvmarg value="-DLUCENE_INDEX=${env.LUCENE_INDEX}"/>
</java>
</target>
</project>