aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 89718f9a9b..add72bbbd9 100644
--- a/build.xml
+++ b/build.xml
@@ -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" -->