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
This commit is contained in:
parent
11c4ab5eca
commit
863ed85b8c
17
build.xml
17
build.xml
@ -1075,5 +1075,22 @@ under the License.
|
|||||||
<m2-install artifactId="poi-ooxml-schemas"/>
|
<m2-install artifactId="poi-ooxml-schemas"/>
|
||||||
</target>
|
</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>
|
</project>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user