Skip to content

Apache Lucene open-source search software

upgrade lucli build to conform with master build

Erik Hatcher5dc61de9a2c8
diff --git a/sandbox/contributions/lucli/build.xml b/sandbox/contributions/lucli/build.xml
index ab9cc4d855c..78ca92b43d8 100644
--- a/sandbox/contributions/lucli/build.xml
+++ b/sandbox/contributions/lucli/build.xml
@@ -1,36 +1,22 @@
-<project name="lucli" default="build" basedir=".">
+<?xml version="1.0"?>
- <!-- set global properties for this build -->
- <property name="src" value="./src"/>
- <property name="build" value="./classes"/>
- <property name="lucliLib" value="${build}/lucli.jar"/>
+<project name="lucli" default="default">
- <!-- Include all elements that Tomcat exposes to applications -->
- <path id="compile.classpath">
- <fileset dir="lib">
- <include name="*.jar"/>
- </fileset>
- </path>
+ <description>
+ Lucene Command Line Interface
+ </description>
- <target name="init">
- <!-- Create the time stamp -->
- <tstamp/>
- <!-- Create the dist directory structure used by compile -->
- <mkdir dir="${build}"/>
- <mkdir dir="${build}/docs"/>
- <mkdir dir="${build}/docs/javadocs"/>
- </target>
- <target name="compile" depends="init">
- <!-- Compile the java code from ${src} into ${build} -->
- <javac debug="on" deprecation="on" srcdir="${src}" destdir="${build}">
- <classpath refid="compile.classpath"/>
- </javac>
- </target>
+ <path id="additional.dependencies">
+ <pathelement location="lib/libreadline-java.jar"/>
+ </path>
- <target name="build" depends="compile">
- <jar basedir="${build}" includes="**/*.class" jarfile="${lucliLib}"/>
- </target>
+ <pathconvert property="project.classpath"
+ targetos="unix"
+ refid="additional.dependencies"
+ />
+ <property name="src.dir" location="src"/>
+ <import file="../common.xml"/>
</project>