6932659: JTreg test files were missed in push of 6887703

Reviewed-by: uta
This commit is contained in:
Denis Fokin 2010-03-06 03:37:53 +03:00
parent 6f9a6edc4f
commit ec862c8b43

View File

@ -146,7 +146,16 @@ public class ProcessCommunicator {
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);
}