Enable the Forbidden APIs checks on Main, Scratchpad and OOXML. Run with "ant forbidden-apis-check"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698148 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eea3ef5c49
commit
57a1370f1d
22
build.xml
22
build.xml
@ -1730,7 +1730,27 @@ under the License.
|
|||||||
<!-- See https://github.com/policeman-tools/forbidden-apis for details -->
|
<!-- See https://github.com/policeman-tools/forbidden-apis for details -->
|
||||||
<!-- of the checks that this can do -->
|
<!-- of the checks that this can do -->
|
||||||
<target name="forbidden-apis-check" depends="init">
|
<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>
|
||||||
|
|
||||||
<target name="findbugs"><!-- depends="assemble" -->
|
<target name="findbugs"><!-- depends="assemble" -->
|
||||||
|
Loading…
Reference in New Issue
Block a user