db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1848312 - /db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
Date Thu, 06 Dec 2018 13:57:04 GMT
Author: rhillegas
Date: Thu Dec  6 13:57:04 2018
New Revision: 1848312

URL: http://svn.apache.org/viewvc?rev=1848312&view=rev
Log:
DERBY-6945: Correct the classpath used on Windows by tests which spawn JVMs; commit derby-6945-63-aa-correctWindowsTestClasspath.diff.

Modified:
    db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java?rev=1848312&r1=1848311&r2=1848312&view=diff
==============================================================================
--- db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
(original)
+++ db/derby/code/trunk/java/org.apache.derby.tests/org/apache/derbyTesting/junit/BaseTestCase.java
Thu Dec  6 13:57:04 2018
@@ -769,6 +769,12 @@ public abstract class BaseTestCase
             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);



Mime
View raw message