aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2015-08-27 13:07:36 +0000
committerNick Burch <nick@apache.org>2015-08-27 13:07:36 +0000
commitd8adc5a49a683b2cddf9737b093624ad851c0c2d (patch)
tree9e1389f1e58e88aefed45b3f638bbb6ce20e6aa4 /build.xml
parentb1a390515e1a8afa711194876b886da846f1d3f9 (diff)
downloadpoi-d8adc5a49a683b2cddf9737b093624ad851c0c2d.tar.gz
poi-d8adc5a49a683b2cddf9737b093624ad851c0c2d.zip
Stub a call to the Forbidden APIs check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1698143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 47f06f1df9..cbe039c6b7 100644
--- a/build.xml
+++ b/build.xml
@@ -1647,12 +1647,12 @@ under the License.
</mvn:mvn>
</target>
- <target name="dist" depends="clean, compile-all, test-all, site, jar, release-notes, assemble"
+ <target name="dist" depends="clean, compile-all, test-all, rat-check, forbidden-apis-check, site, jar, release-notes, assemble"
description="Creates the entire distribution into build/dist, from scratch">
</target>
<target name="gump" depends="compile-all, test-all, jar"/>
- <target name="jenkins" depends="compile-all, test-all, test-integration, jar, javadocs, assemble, findbugs, release-notes, rat-check"/>
+ <target name="jenkins" depends="compile-all, test-all, test-integration, jar, javadocs, assemble, findbugs, release-notes, rat-check, forbidden-apis-check"/>
<available property="maven.ant.tasks.present" classname="org.apache.maven.artifact.ant.Pom"/>
<target name="maven.ant.tasks-check">
@@ -1720,6 +1720,14 @@ under the License.
<fail><condition><matches pattern="[1-9][0-9]* Unknown Licens" string="${rat.reportcontent}"/></condition></fail>
</target>
+ <!-- Runs the Forbiddens APIs checker against the source code, to -->
+ <!-- spot any cases where we've accidently used methods we shouldn't -->
+ <!-- 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" />
+ </target>
+
<target name="findbugs"><!-- depends="assemble" -->
<antcall target="downloadfile">
<param name="sourcefile" value="http://prdownloads.sourceforge.net/findbugs/findbugs-noUpdateChecks-2.0.3.zip?download"/>