Fixed 'ant clean' failing if a directory didn't exist. Replaced with an include pattern.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-01-26 13:56:50 +00:00
parent 5644c6aa18
commit 2c3fa2e3db
1 changed files with 6 additions and 3 deletions

View File

@ -184,9 +184,12 @@
<delete dir="package" /> <delete dir="package" />
<delete dir="example/solr/lib" /> <delete dir="example/solr/lib" />
<delete includeemptydirs="true"> <delete includeemptydirs="true">
<fileset dir="example" includes="**/data/**/*" excludes="**/.gitignore" /> <fileset dir="example">
<fileset dir="example/webapps" includes="**/*" excludes="**/.gitignore" /> <include name="example/**/data/**/*" />
<fileset dir="example/work" includes="**/*" excludes="**/.gitignore" /> <include name="example/webapps/**/*" />
<include name="example/work/**/*" />
<exclude name="**/.gitignore" />
</fileset>
</delete> </delete>
<echo message="TODO: fix tests to not write files to 'core/src/test-files/solr/data'!" /> <echo message="TODO: fix tests to not write files to 'core/src/test-files/solr/data'!" />
<delete dir="core/src/test-files/solr/data" /> <delete dir="core/src/test-files/solr/data" />