aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-08-27 13:14:46 +0000
committerNick Burch <nick@apache.org>2015-08-27 13:14:46 +0000
commitda6635ceb41c12c56197775381ec1d5194008326 (patch)
treea023a6cb5d2cc499f8f2b41565b01f4a3d445b4c /build.xml
parentd8adc5a49a683b2cddf9737b093624ad851c0c2d (diff)
downloadpoi-da6635ceb41c12c56197775381ec1d5194008326.tar.gz
poi-da6635ceb41c12c56197775381ec1d5194008326.zip
Update RAT docs, and fetch the Forbidden APIs jar
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml15
1 files changed, 10 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index cbe039c6b7..89718f9a9b 100644
--- a/build.xml
+++ b/build.xml
@@ -190,9 +190,11 @@ under the License.
<property name="asm.jar" location="${main.lib}/asm-all-5.0.3.jar"/>
<property name="asm.url" value="${repository.m2}/maven2/org/ow2/asm/asm-all/5.0.3/asm-all-5.0.3.jar"/>
- <!-- license checks -->
+ <!-- license and api checks -->
<property name="rat.jar" location="${main.lib}/apache-rat-0.11.jar"/>
<property name="rat.url" value="${repository.m2}/maven2/org/apache/rat/apache-rat/0.11/apache-rat-0.11.jar"/>
+ <property name="forbidden.jar" location="${main.lib}/forbiddenapis-1.8.jar"/>
+ <property name="forbidden.url" value="${repository.m2}/maven2/de/thetaphi/forbiddenapis/1.8/forbiddenapis-1.8.jar"/>
<!-- See http://www.ecma-international.org/publications/standards/Ecma-376.htm -->
<!-- "Copy these file(s), free of charge" -->
@@ -464,6 +466,7 @@ under the License.
<available file="${asm.jar}"/>
<available file="${jacoco.zip}"/>
<available file="${rat.jar}"/>
+ <available file="${forbidden.jar}"/>
<available file="${dsig.bouncycastle-prov.jar}"/>
<available file="${dsig.bouncycastle-pkix.jar}"/>
<available file="${dsig.xmlsec.jar}"/>
@@ -523,6 +526,10 @@ under the License.
<param name="destfile" value="${rat.jar}"/>
</antcall>
<antcall target="downloadfile">
+ <param name="sourcefile" value="${forbidden.url}"/>
+ <param name="destfile" value="${forbidden.jar}"/>
+ </antcall>
+ <antcall target="downloadfile">
<param name="sourcefile" value="${dsig.bouncycastle-prov.url}"/>
<param name="destfile" value="${dsig.bouncycastle-prov.jar}"/>
</antcall>
@@ -1688,10 +1695,8 @@ under the License.
<m2-install artifactId="poi-excelant"/>
</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 -->
+ <!-- Runs the Apache Creadur Rat check against the source code, to -->
+ <!-- spot any files which are missing the correct license headers -->
<target name="rat-check" depends="init">
<mkdir dir="${rat.reportdir}" />