diff options
author | Nick Burch <nick@apache.org> | 2010-05-24 14:16:15 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2010-05-24 14:16:15 +0000 |
commit | c6a5ff361cea5b239e9f7589843b6e1654f01701 (patch) | |
tree | a0c8574de6c0492212b147e4a15d2623b6cfba79 /build.xml | |
parent | 2d81bf66b1c9871b23941b4c6ad56d7e708cf66d (diff) | |
download | poi-c6a5ff361cea5b239e9f7589843b6e1654f01701.tar.gz poi-c6a5ff361cea5b239e9f7589843b6e1654f01701.zip |
Add a "rat-check" optional target, which runs Apache Rat against the source tree to spot files lacking license headers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@947648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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> |