You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2008/09/24 11:51:54 UTC
svn commit: r698493 - /lucene/java/branches/lucene_2_4/build.xml
Author: mikemccand
Date: Wed Sep 24 02:51:54 2008
New Revision: 698493
URL: http://svn.apache.org/viewvc?rev=698493&view=rev
Log:
LUCENE-1400: add rat-sources target to build.xml
Modified:
lucene/java/branches/lucene_2_4/build.xml
Modified: lucene/java/branches/lucene_2_4/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_4/build.xml?rev=698493&r1=698492&r2=698493&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_4/build.xml (original)
+++ lucene/java/branches/lucene_2_4/build.xml Wed Sep 24 02:51:54 2008
@@ -628,4 +628,21 @@
<target name="apply-patch" depends="clean" description="Apply a patch file. Set -Dpatch.file, or -Dpatch.name when the patch is in the directory ../patches/">
<patch patchfile="${patch.file}" strip="0"/>
</target>
+
+ <target name="rat-sources-typedef">
+ <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="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>