2004-02-24 20:11:24 -05:00
|
|
|
<?xml version="1.0"?>
|
2009-06-19 14:24:19 -04:00
|
|
|
<!--
|
|
|
|
To use this example from a source checkout:
|
|
|
|
ant -f example.xml -lib ../../build/contrib/ant/ -lib ../../build/ -lib lib
|
|
|
|
-->
|
2004-02-24 20:11:24 -05:00
|
|
|
<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>
|