avoid CommandLineWrapper as mediator when no vm properties were written in the classpath jar

This commit is contained in:
Anna Kozlova
2015-07-24 23:17:12 +02:00
parent 47454ddc4c
commit 8b00faf5fc
4 changed files with 14 additions and 17 deletions
@@ -15,8 +15,6 @@
*/
package com.intellij.rt.execution.testFrameworks;
import com.intellij.rt.execution.CommandLineWrapper;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
@@ -83,10 +81,7 @@ public abstract class ForkedByModuleSplitter {
builder.add("-classpath");
if (myDynamicClasspath.length() > 0) {
try {
final File classpathFile = createClasspathJarFile(new Manifest(), classpath);
builder.add(myDynamicClasspath + File.pathSeparator + classpathFile.getAbsolutePath());
builder.add(CommandLineWrapper.class.getName());
builder.add(classpathFile.getAbsolutePath());
builder.add(createClasspathJarFile(new Manifest(), classpath).getAbsolutePath());
}
catch (Throwable e) {
builder.add(classpath);