Browse Source

use cleaner methid to detect current java version in <apt>

master
Stefan Bodewig 7 years ago
parent
commit
8191d7e0f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Apt.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Apt.java View File

@@ -262,7 +262,7 @@ public class Apt
*/ */
public void execute() public void execute()
throws BuildException { throws BuildException {
if (JavaEnvUtils.getJavaVersionNumber() >= 18) {
if (JavaEnvUtils.isAtLeastJavaVersion(JavaEnvUtils.JAVA_1_8)) {
throw new BuildException("apt does not exist under Java 1.8 and higher"); throw new BuildException("apt does not exist under Java 1.8 and higher");
} }
super.execute(); super.execute();


Loading…
Cancel
Save