lucene/sandbox/contributions/ant/build.xml

45 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<project name="lucene-ant" default="default">
<description>
Lucene Ant integration
</description>
<path id="additional.dependencies">
<!-- TODO: make ${tidy.jar} property -->
<pathelement location="lib/Tidy.jar"/>
</path>
<pathconvert property="project.classpath"
targetos="unix"
refid="additional.dependencies"
/>
<property name="src.dir" location="src/main"/>
<!-- alias classpath for cleaner example in index target -->
<path id="index.classpath">
<path refid="test.classpath"/>
</path>
<import file="../common.xml"/>
<property name="index.dir" location="${test.output.dir}/index"/>
<property name="files.dir" location="${test.src.dir}"/>
<target name="index" depends="compile">
<taskdef name="index"
classname="org.apache.lucene.ant.IndexTask"
classpathref="index.classpath"
/>
<!-- <typedef file="src/main/org/apache/lucene/ant/antlib.xml"
uri="lucene:/org/apache/lucene/ant"
classpathref="index.classpath"/> -->
<index index="${index.dir}">
<fileset dir="${files.dir}"/>
</index>
</target>
</project>