db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r711992 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Thu, 06 Nov 2008 22:22:31 GMT
Author: kmarsden
Date: Thu Nov  6 14:22:27 2008
New Revision: 711992

URL: http://svn.apache.org/viewvc?rev=711992&view=rev
Log:
DERBY-3840 The test code executes java processes by just executing java instead of using a
full path. This may cause the wrong java to be picked up.

fixed one missed case in execJavaCmd


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

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=711992&r1=711991&r2=711992&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Thu Nov
 6 14:22:27 2008
@@ -468,7 +468,7 @@
 	public Process execJavaCmd(String[] cmd) throws IOException {
 	    int totalSize = 3 + cmd.length;
 	    String[] tcmd = new String[totalSize];
-	    tcmd[0] = "java";
+	    tcmd[0] = getJavaExecutableName();
 	    tcmd[1] = "-classpath";
 	    tcmd[2] = BaseTestCase.getSystemProperty("java.class.path");
 



Mime
View raw message