|
57 | 57 | <equals arg1="${-cleaned.specification.version}" arg2="1.6"/>
|
58 | 58 | <equals arg1="${-cleaned.specification.version}" arg2="1.7"/>
|
59 | 59 | <equals arg1="${-cleaned.specification.version}" arg2="1.8"/>
|
| 60 | + <equals arg1="${-cleaned.specification.version}" arg2="1.9"/> |
60 | 61 | </or>
|
61 | 62 | </condition>
|
62 | 63 |
|
|
66 | 67 | <condition property="build.compiler" value="javac1.7">
|
67 | 68 | <and>
|
68 | 69 | <or>
|
| 70 | + <equals arg1="${build.java.runtime}" arg2="1.9"/> |
69 | 71 | <equals arg1="${build.java.runtime}" arg2="1.8"/>
|
70 | 72 | <equals arg1="${build.java.runtime}" arg2="unknown"/>
|
71 | 73 | </or>
|
|
90 | 92 | <property name="ivy.logging" value="download-only"/>
|
91 | 93 |
|
92 | 94 | <property name="signatures.dir" location="src/main/resources/de/thetaphi/forbiddenapis/signatures"/>
|
| 95 | + <property name="groovy-tools.dir" location="src/tools/groovy"/> |
93 | 96 | <property name="maven-build-dir" location="build/maven"/>
|
94 | 97 | <property name="documentation-dir" location="build/docs"/>
|
95 | 98 |
|
|
173 | 176 | <ivy:cachepath pathid="path.tasks" conf="buildtools" log="${ivy.logging}"/>
|
174 | 177 | <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="path.tasks"/>
|
175 | 178 | <taskdef uri="antlib:org.apache.maven.artifact.ant" classpathref="path.tasks"/>
|
| 179 | + <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="path.tasks"/> |
176 | 180 | <property name="installed.tasks" value="true"/>
|
177 | 181 | </target>
|
178 | 182 |
|
|
469 | 473 | <echo level="warn" message="Test suite / bundled signatures checker was not executed, because the used JVM version is unsupported: ${build.java.info}"/>
|
470 | 474 | </target>
|
471 | 475 |
|
472 |
| - <target name="generate-deprecated" depends="compile-tools" description="Generates deprecated API signature lists for current JDK"> |
473 |
| - <fail message="Regenerating the deprecated signatures files need stock Oracle/Sun JDK, but your Java version or operating system is unsupported: ${build.java.info}"> |
474 |
| - <condition> |
475 |
| - <not> |
476 |
| - <and> |
477 |
| - <available file="${java.home}/lib/rt.jar"/> |
478 |
| - <matches string="${java.version}" pattern="^\Q${build.java.runtime}\E" casesensitive="true"/> |
479 |
| - <or> |
480 |
| - <contains string="${java.vendor}" substring="Oracle" casesensitive="false"/> |
481 |
| - <contains string="${java.vendor}" substring="Sun Microsystems" casesensitive="false"/> |
482 |
| - </or> |
483 |
| - </and> |
484 |
| - </not> |
485 |
| - </condition> |
486 |
| - </fail> |
| 476 | + <target name="generate-deprecated" depends="compile-tools,-install-tasks" description="Generates deprecated API signature lists for current JDK"> |
487 | 477 | <mkdir dir="${signatures.dir}"/>
|
488 |
| - <echo level="info" message="Building deprecated signatures for JDK ${build.java.runtime}:"/> |
489 |
| - <java fork="false" classpathref="path.tools-run" classname="de.thetaphi.forbiddenapis.DeprecatedGen"> |
490 |
| - <arg value="${build.java.runtime}"/> |
491 |
| - <arg file="${java.home}/lib/rt.jar"/> |
492 |
| - <arg file="${signatures.dir}/jdk-deprecated-${build.java.runtime}.txt"/> |
493 |
| - </java> |
| 478 | + <property name="deprecated.output.file" location="${signatures.dir}/jdk-deprecated-${build.java.runtime}.txt"/> |
| 479 | + <groovy classpathref="path.tools-run" src="${groovy-tools.dir}/generate-deprecated.groovy"/> |
494 | 480 | </target>
|
495 | 481 |
|
496 | 482 | <target name="-generate-test-classes-init">
|
|
0 commit comments