Skip to content

Commit

Permalink
Issue #19: Add a checker for bundled signatures against running JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Sep 14, 2014
1 parent 67a4d60 commit 81b8115
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
</artifact:deploy>
</target>

<target name="test" depends="-check-myself,-antunit,-tests-unsupported" description="Run tests"/>
<target name="test" depends="-check-myself,check-bundled-signatures,-antunit,-tests-unsupported" description="Run tests"/>

<target name="-install-forbiddenapi-task" depends="compile" unless="installed.forbiddenapi-task">
<taskdef name="forbiddenapis" classname="de.thetaphi.forbiddenapis.AntTask" classpathref="path.run"/>
Expand All @@ -411,6 +411,15 @@
</forbiddenapis>
</target>

<target name="check-bundled-signatures" depends="-install-forbiddenapi-task" if="tests.supported"
description="Checks bundled signatures file corresponding to the current JVM. Run after every update!">
<forbiddenapis failOnUnsupportedJava="true" classpathref="path.tools-run" ignoreEmptyFileset="true">
<bundledsignatures name="jdk-unsafe-${build.java.runtime}"/>
<bundledsignatures name="jdk-deprecated-${build.java.runtime}"/>
<bundledsignatures name="jdk-system-out"/>
</forbiddenapis>
</target>

<target name="-install-antunit" unless="installed.antunit">
<taskdef uri="antlib:org.apache.ant.antunit" classpathref="path.test"/>
<taskdef uri="antlib:net.sf.antcontrib" classpathref="path.test"/>
Expand Down

0 comments on commit 81b8115

Please sign in to comment.