example of antlib usage

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-02-25 01:11:24 +00:00
parent 0bc129625f
commit 1c5145048b
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<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>