]> source.dussan.org Git - poi.git/commitdiff
Add a "rat-check" optional target, which runs Apache Rat against the source tree...
authorNick Burch <nick@apache.org>
Mon, 24 May 2010 14:16:15 +0000 (14:16 +0000)
committerNick Burch <nick@apache.org>
Mon, 24 May 2010 14:16:15 +0000 (14:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@947648 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index df0dfb674fdb4dee66ad51e16eb4e58a11d476cb..9ffdaf88e5c24479e52cd679f328fc5d0995ecc3 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1075,5 +1075,22 @@ under the License.
       <m2-install artifactId="poi-ooxml-schemas"/>
     </target>
     
+    <!-- Runs Apache Rat against the source code, to spot any files -->
+    <!--  which are missing the correct license headers -->
+    <!-- You need to download rat from http://incubator.apache.org/rat/ -->
+    <!--  and place the Rat jar into your ant lib before running -->
+    <target name="rat-check">
+       <typedef resource="org/apache/rat/anttasks/antlib.xml"
+             uri="antlib:org.apache.rat.anttasks"/>
+       <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
+           <fileset dir="src/">
+              <exclude name="documentation/content/xdocs/dtd/" />
+              <exclude name="documentation/content/xdocs/entity/" />
+              <exclude name="scratchpad/testcases/dummy.txt" />
+              <exclude name="contrib/testcases/dummy.txt" />
+              <exclude name="examples/lib/dummy.txt" />
+           </fileset>
+       </rat:report>
+    </target>
 </project>