Java requires Java 1.5 since Ant 1.9.0 (07 March 2013)

Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/833af4b2
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/833af4b2
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/833af4b2

Branch: refs/heads/master
Commit: 833af4b2b616f04bfcebad37611d1b15ce91b2ab
Parents: ceb39e2
Author: Jan Matèrne <j...@apache.org>
Authored: Mon Feb 23 16:08:09 2015 +0100
Committer: Jan Matèrne <j...@apache.org>
Committed: Mon Feb 23 16:08:09 2015 +0100

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/Project.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/833af4b2/src/main/org/apache/tools/ant/Project.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/Project.java 
b/src/main/org/apache/tools/ant/Project.java
index 08ae7ec..3a0c4b8 100644
--- a/src/main/org/apache/tools/ant/Project.java
+++ b/src/main/org/apache/tools/ant/Project.java
@@ -930,8 +930,8 @@ public class Project implements ResourceFactory {
         setPropertyInternal(MagicNames.ANT_JAVA_VERSION, javaVersion);
 
         // sanity check
-        if (!JavaEnvUtils.isAtLeastJavaVersion(JavaEnvUtils.JAVA_1_4))  {
-            throw new BuildException("Ant cannot work on Java prior to 1.4");
+        if (!JavaEnvUtils.isAtLeastJavaVersion(JavaEnvUtils.JAVA_1_5))  {
+            throw new BuildException("Ant cannot work on Java prior to 1.5");
         }
         log("Detected Java version: " + javaVersion + " in: "
             + System.getProperty("java.home"), MSG_VERBOSE);

Reply via email to