Browse Source

Properly set the "ant.java.version" property.

Submitted by:	Justyna Horwat


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267663 13f79535-47bb-0310-9956-ffa450edef68
master
Arnout J. Kuiper 25 years ago
parent
commit
1b5eae2230
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/Project.java

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

@@ -288,11 +288,11 @@ public class Project {
javaVersion = JAVA_1_2; javaVersion = JAVA_1_2;
Class.forName("java.lang.StrictMath"); Class.forName("java.lang.StrictMath");
javaVersion = JAVA_1_3; javaVersion = JAVA_1_3;
setProperty("ant.java.version", javaVersion);
} catch (ClassNotFoundException cnfe) { } catch (ClassNotFoundException cnfe) {
// swallow as we've hit the max class version that // swallow as we've hit the max class version that
// we have // we have
} }
setProperty("ant.java.version", javaVersion);


// sanity check // sanity check
if (javaVersion == JAVA_1_0) { if (javaVersion == JAVA_1_0) {


Loading…
Cancel
Save