Author: erwan
Date: Wed Nov 16 19:31:56 2011
New Revision: 1202850
URL:
http://svn.apache.org/viewvc?rev=1202850&view=revLog:
Adding a new ant target, clean-lucene-index, which will remove all files in content/index. These target is called by clean-all
Modified:
ofbiz/trunk/applications/content/build.xml
ofbiz/trunk/build.xml
Modified: ofbiz/trunk/applications/content/build.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/build.xml?rev=1202850&r1=1202849&r2=1202850&view=diff==============================================================================
--- ofbiz/trunk/applications/content/build.xml (original)
+++ ofbiz/trunk/applications/content/build.xml Wed Nov 16 19:31:56 2011
@@ -59,4 +59,12 @@ under the License.
<main-jar/>
<test-jar/>
</target>
+
+ <target name="clean-lucene-index">
+ <delete verbose="on">
+ <fileset dir="index/" includes="*">
+ <exclude name="indexhere.txt"/>
+ </fileset>
+ </delete>
+ </target>
</project>
Modified: ofbiz/trunk/build.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=1202850&r1=1202849&r2=1202850&view=diff==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Wed Nov 16 19:31:56 2011
@@ -75,6 +75,7 @@ under the License.
<antcall target="clean-catalina"/>
<antcall target="clean-cache"/>
<antcall target="clean-tempfiles"/>
+ <antcall target="clean-lucene-index"/>
<!-- FIXME: clean-downloads introduces some issues: with cobertura (on Windows can't be deleted, not sure why),
but especially with postgresql drivers -->
<!-- antcall target="clean-downloads"/ -->
@@ -140,6 +141,13 @@ under the License.
</subant>
</target>
+ <target name="clean-lucene-index"
+ description="Removes lucene indexes created in applications/content/index">
+ <subant target="clean-lucene-index">
+ <filelist dir="." files="applications/content/build.xml"/>
+ </subant>
+ </target>
+
<target name="download-selenium"
description="Download the selenium server v1.0.3 20.8 MB download">
<subant target="install-seleniumxml">