From 2d53fc8d19e07aa0be76b597ee24d26e7b132c0c Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Thu, 16 Nov 2006 19:13:37 +0000 Subject: [PATCH] Validated under windows only but jdk 1.3 doesn't support the international format classpaths in jar manifests. (Test building the jars under jdk 1.3 and running them directly using java using jdk 1.5 works, but running them using java form jkd 1.3 gives errors) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475880 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/ManifestClassPathTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java index 452be6627..87208b782 100644 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java @@ -133,10 +133,21 @@ public class ManifestClassPathTest "../../resources/dsp-void/"); } public void testInternationalGerman() { + if (System.getProperty("java.vm.version").compareTo("1.4") < 0) + { + System.out.println("Test with international characters skipped under pre 1.4 jvm."); + return; + } executeTarget("international-german"); expectLogContaining("run-two-jars", "beta alpha"); + } public void testInternationalHebrew() { + if (System.getProperty("java.vm.version").compareTo("1.4") < 0) + { + System.out.println("Test with international characters skipped under pre 1.4 jvm."); + return; + } if (!Os.isFamily("windows")) { executeTarget("international-hebrew"); expectLogContaining("run-two-jars", "beta alpha");