Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-687 add RAT

Sami Siren8963a1787186
diff --git a/build.xml b/build.xml
index 143939166..078327f73 100644
--- a/build.xml
+++ b/build.xml
@@ -610,4 +610,23 @@
<delete dir="${build.dir}"/>
</target>
+ <!-- ================================================================== -->
+ <!-- RAT targets -->
+ <!-- ================================================================== -->
+ <target name="rat-sources-typedef">
+ <typedef resource="org/apache/rat/anttasks/antlib.xml" >
+ <classpath>
+ <fileset dir="." includes="rat*.jar"/>
+ </classpath>
+ </typedef>
+ </target>
+
+ <target name="rat-sources" depends="rat-sources-typedef"
+ description="runs the tasks over src/java">
+ <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
+ <fileset dir="src/java">
+ </fileset>
+ </rat:report>
+ </target>
+
</project>