6932659: JTreg test files were missed in push of 6887703
authordenis
Sat, 06 Mar 2010 03:37:53 +0300
changeset 5193 44feb685d646
parent 5192 506ebd065f86
child 5194 ba7f04720557
6932659: JTreg test files were missed in push of 6887703 Reviewed-by: uta
jdk/test/java/awt/regtesthelpers/process/ProcessCommunicator.java
--- a/jdk/test/java/awt/regtesthelpers/process/ProcessCommunicator.java	Fri Feb 26 03:54:52 2010 -0800
+++ b/jdk/test/java/awt/regtesthelpers/process/ProcessCommunicator.java	Sat Mar 06 03:37:53 2010 +0300
@@ -146,7 +146,16 @@
                          final String classPathArguments, final String [] args)
     {
         StringBuilder commandBuilder = new StringBuilder();
-        commandBuilder.append(javaPath).append(classPathArguments).append(classToExecute.getName());
+        commandBuilder.append(javaPath).append(" ");
+        commandBuilder.append("-cp ").append(System.getProperty("test.classes", ".")).append(File.pathSeparatorChar);
+
+        if (classPathArguments.trim().length() > 0) {
+            commandBuilder.append(classPathArguments).append(" ");
+        }
+
+        commandBuilder.append(" ");
+        commandBuilder.append(classToExecute.getName());
+
         for (String argument:args) {
             commandBuilder.append(" ").append(argument);
         }