changeset 2272:c5c6f8fa92ae

6932659: JTreg test files were missed in push of 6887703 Reviewed-by: uta
author denis
date Sat, 06 Mar 2010 03:37:53 +0300
parents 7a6b3cc68e92
children 2805db6e6ff6
files test/java/awt/regtesthelpers/process/ProcessCommunicator.java
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/regtesthelpers/process/ProcessCommunicator.java	Fri Feb 26 03:54:52 2010 -0800
+++ b/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);
         }