You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/12/09 19:08:30 UTC
[3/5] ant git commit: use cleaner methid to detect current java
version in
use cleaner methid to detect current java version in <apt>
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/8191d7e0
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/8191d7e0
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/8191d7e0
Branch: refs/heads/master
Commit: 8191d7e0f2e961953bbbb9bfd7003d6d32f3182c
Parents: 6cd989e
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Dec 9 19:34:17 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Dec 9 19:34:17 2017 +0100
----------------------------------------------------------------------
src/main/org/apache/tools/ant/taskdefs/Apt.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/8191d7e0/src/main/org/apache/tools/ant/taskdefs/Apt.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/Apt.java b/src/main/org/apache/tools/ant/taskdefs/Apt.java
index 52154a8..ab527b8 100644
--- a/src/main/org/apache/tools/ant/taskdefs/Apt.java
+++ b/src/main/org/apache/tools/ant/taskdefs/Apt.java
@@ -262,7 +262,7 @@ public class Apt
*/
public void execute()
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");
}
super.execute();