DERBY-6945: Correct the classpath used on Windows by tests which spawn JVMs; commit derby-6945-63-aa-correctWindowsTestClasspath.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1848312 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java b/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
index 2de98ae..f6fa2ee 100644
--- a/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
+++ b/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
@@ -769,6 +769,12 @@
             else if (useModulePath) { myClasspath = JVMInfo.getSystemModulePath(); }
             else { myClasspath = getSystemProperty("java.class.path"); }
 
+            // on Windows, the garbled "file:" prefix results in an unreadable classpath
+            if (isWindowsPlatform())
+            {
+                myClasspath = myClasspath.replace("file:/", "/");
+            }
+
             if (useModulePath) { cmdlist.add("-p"); }
             else { cmdlist.add("-classpath"); }
             cmdlist.add(myClasspath);