lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r698493 - /lucene/java/branches/lucene_2_4/build.xml
Date Wed, 24 Sep 2008 09:51:54 GMT
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>



Mime
View raw message