poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1698148 - /poi/trunk/build.xml
Date Thu, 27 Aug 2015 13:23:44 GMT
Author: nick
Date: Thu Aug 27 13:23:44 2015
New Revision: 1698148

URL: http://svn.apache.org/r1698148
Log:
Enable the Forbidden APIs checks on Main, Scratchpad and OOXML. Run with "ant forbidden-apis-check"

Modified:
    poi/trunk/build.xml

Modified: poi/trunk/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=1698148&r1=1698147&r2=1698148&view=diff
==============================================================================
--- poi/trunk/build.xml (original)
+++ poi/trunk/build.xml Thu Aug 27 13:23:44 2015
@@ -1730,7 +1730,27 @@ under the License.
     <!-- See https://github.com/policeman-tools/forbidden-apis for details -->
     <!--  of the checks that this can do -->
     <target name="forbidden-apis-check" depends="init">
-       <fail message="TODO" />
+        <taskdef name="forbiddenapis" 
+                 classname="de.thetaphi.forbiddenapis.AntTask" 
+                 classpath="${forbidden.jar}"/>
+        <antcall target="-do-forbidden-apis-check">
+            <param name="dir" value="${main.output.dir}"/>
+        </antcall>
+        <antcall target="-do-forbidden-apis-check">
+            <param name="dir" value="${scratchpad.output.dir}"/>
+        </antcall>
+        <antcall target="-do-forbidden-apis-check">
+            <param name="dir" value="${ooxml.output.dir}"/>
+        </antcall>
+    </target>
+    <target name="-do-forbidden-apis-check">
+        <forbiddenapis 
+                 internalRuntimeForbidden="true" 
+                 classpathref="javadoc.classpath" 
+                 dir="${dir}">
+            <bundledsignatures name="jdk-unsafe-${jdk.version.source}"/>
+            <bundledsignatures name="jdk-deprecated-${jdk.version.source}"/>
+        </forbiddenapis>
     </target>
 
     <target name="findbugs"><!-- depends="assemble" -->



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message