From 68b846a4c27361cce2b6d7e9c60ca697f980913e Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 29 Nov 2017 16:17:34 +0100 Subject: try to adapt to Java10+ rapidly changing major versions --- manual/Tasks/conditions.html | 39 +++++++++++++++++++++++++++++++++++++++ manual/Tasks/javac.html | 9 +++++---- 2 files changed, 44 insertions(+), 4 deletions(-) (limited to 'manual/Tasks') diff --git a/manual/Tasks/conditions.html b/manual/Tasks/conditions.html index 08d0bccec..35216cdff 100644 --- a/manual/Tasks/conditions.html +++ b/manual/Tasks/conditions.html @@ -1090,5 +1090,44 @@ is redundant and will be ignored.

<file file="${file}"/> </resourceexists> + +

javaversion

+ +

Tests the version of the JVM executing Ant. Since Ant +1.9.10

+ + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
atleastThe version that this JVM is at least. + The format is major.minor.point. Starting with Java9 really + only the major number is determined.NoOne of these.
exactlyThe version that this JVM is exactly. + The format is major.minor.point. Starting with Java9 really + only the major number is determined.No
+ +

+ An example: +

+ +
+<javaversion atleast="9"/>
+
+ +

will evaluate to true if the current JVM is Java9 or above.

+ diff --git a/manual/Tasks/javac.html b/manual/Tasks/javac.html index 68c6310d3..89ec0549f 100644 --- a/manual/Tasks/javac.html +++ b/manual/Tasks/javac.html @@ -78,9 +78,10 @@ attribute are:

javac1.5 and javac1.6 and javac1.7 (since Ant 1.8.2) and - javac1.8 (since Ant 1.8.3) and - javac1.9 (since Ant 1.9.5) and - javac9 (since Ant 1.9.8) can be used as aliases. + javac1.8 (since Ant 1.8.3) and + javac1.9 (since Ant 1.9.5) and + javac9 (since Ant 1.9.8) and + javac10+ (since Ant 1.9.10) can be used as aliases.
  • jikes (the Jikes compiler).
  • @@ -525,7 +526,7 @@ invoking the compiler.

    release - Specify the value for the --release switch.Ignored + Specify the value for the --release switch. Ignored when running on JDK < 9.
    When set and running on JDK >= 9 the source and target attributes as well as the bootclasspath will be ignored. -- cgit v1.2.1