lucene/contrib/ant/example.xml

25 lines
595 B
XML

<?xml version="1.0"?>
<!--
To use this example from a source checkout:
ant -f example.xml -lib ../../build/contrib/ant/ -lib ../../build/ -lib lib
-->
<project name="ant-example" default="index">
<description>
Lucene Ant index example
</description>
<property name="index.base.dir" location="build"/>
<property name="files.dir" location="src/test"/>
<target name="index">
<mkdir dir="${index.base.dir}"/>
<index index="${index.base.dir}/index"
xmlns="antlib:org.apache.lucene.ant">
<fileset dir="${files.dir}"/>
</index>
</target>
</project>