Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-5467: Add "ant clean-jars" to make a complete renewal with IVY resolve possible.

Uwe Schindler97fc4a3e55b0
diff --git a/build.xml b/build.xml
index 8cb28404cf0..78f5ba4848e 100644
--- a/build.xml
+++ b/build.xml
@@ -322,6 +322,18 @@ File | Project Structure | Platform Settings | SDKs):
</subant>
</target>
+ <target name="clean-jars" description="Remove all JAR files from lib folders in the checkout">
+ <delete failonerror="true">
+ <fileset dir=".">
+ <include name="**/*.jar"/>
+ <exclude name="*/build/**"/>
+ <exclude name="*/dist/**"/>
+ <exclude name="*/package/**"/>
+ <exclude name="*/example/exampledocs/**"/>
+ </fileset>
+ </delete>
+ </target>
+
<target name="ivy-bootstrap" description="Download and install Ivy in the users ant lib dir">
<subant buildpath="lucene" target="ivy-bootstrap" inheritall="false" failonerror="true"/>
</target>