]> source.dussan.org Git - poi.git/commitdiff
Update RAT docs, and fetch the Forbidden APIs jar
authorNick Burch <nick@apache.org>
Thu, 27 Aug 2015 13:14:46 +0000 (13:14 +0000)
committerNick Burch <nick@apache.org>
Thu, 27 Aug 2015 13:14:46 +0000 (13:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698147 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index cbe039c6b7dbabfcc78eba4c6310287854ffa4e8..89718f9a9bb0edf75bd37fb2e2ccf2187f5db4d2 100644 (file)
--- 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}"/>
@@ -522,6 +525,10 @@ under the License.
             <param name="sourcefile" value="${rat.url}"/>
             <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}"/>
@@ -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}" />