Browse Source

fixing a text which is not passing under MacOS with JDK 1.7

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1452156 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 12 years ago
parent
commit
9dc608c245
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/tests/junit/org/apache/tools/ant/util/JavaEnvUtilsTest.java

+ 1
- 1
src/tests/junit/org/apache/tools/ant/util/JavaEnvUtilsTest.java View File

@@ -111,7 +111,7 @@ public class JavaEnvUtilsTest extends TestCase {
assertTrue(j+" is normalized and in the JDK dir",
j.startsWith(javaHomeParent));

if (Os.isFamily("mac")) {
if (Os.isFamily("mac") && JavaEnvUtils.getJavaVersionNumber() <= JavaEnvUtils.VERSION_1_6) {
assertTrue(j+" is normalized and in the JRE dir",
j.startsWith(javaHome));
} else {


Loading…
Cancel
Save