mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not override user's testng.jar (IDEA-67411)
This commit is contained in:
+5
-4
@@ -249,10 +249,7 @@ public class TestNGRunnableState extends JavaCommandLineState {
|
||||
LOG.info("Language level is " + effectiveLanguageLevel.toString());
|
||||
LOG.info("is15 is " + is15);
|
||||
|
||||
// Add plugin jars first...
|
||||
javaParameters.getClassPath().add(is15 ? PathUtil.getJarPathForClass(AfterClass.class) : //testng-jdk15.jar
|
||||
new File(PathManager.getPreinstalledPluginsPath(), "testng/lib-jdk14/testng-jdk14.jar")
|
||||
.getPath());//todo !do not hard code lib name!
|
||||
|
||||
// Configure rest of jars
|
||||
JavaParametersUtil.configureConfiguration(javaParameters, config);
|
||||
Sdk jdk = module == null ? ProjectRootManager.getInstance(project).getProjectSdk() : ModuleRootManager.getInstance(module).getSdk();
|
||||
@@ -280,6 +277,10 @@ public class TestNGRunnableState extends JavaCommandLineState {
|
||||
config.ALTERNATIVE_JRE_PATH_ENABLED ? config.ALTERNATIVE_JRE_PATH : null);
|
||||
}
|
||||
|
||||
javaParameters.getClassPath().add(is15 ? PathUtil.getJarPathForClass(AfterClass.class) : //testng-jdk15.jar
|
||||
new File(PathManager.getPreinstalledPluginsPath(), "testng/lib-jdk14/testng-jdk14.jar")
|
||||
.getPath());//todo !do not hard code lib name!
|
||||
|
||||
try {
|
||||
port = NetUtils.findAvailableSocketPort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user