Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-762: Provide RAT support

Grant Ingersoll897f0c257798
diff --git a/build.xml b/build.xml
index 33144fb80e2..82dc9462c7e 100644
--- a/build.xml
+++ b/build.xml
@@ -813,6 +813,20 @@
depends="test, create-package">
<!-- no description, don't advertise -->
</target>
+ <target name="-taskdef">
+ <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">
+ <classpath>
+ <fileset dir="." includes="rat*.jar"/>
+ </classpath>
+ </typedef>
+ </target>
+<target name="rat-sources" depends="-taskdef"
+ description="runs the tasks over src/java excluding the license directory">
+ <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
+ <fileset dir="src/java">
+ </fileset>
+ </rat:report>
+ </target>
</project>