mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] selects CP shortening method _after_ JDK is set
... otherwise @argfile is never chosen
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.execution;
|
||||
|
||||
import com.intellij.ExtensionPoints;
|
||||
@@ -198,7 +198,6 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
protected JavaParameters createJavaParameters() throws ExecutionException {
|
||||
final JavaParameters javaParameters = new JavaParameters();
|
||||
Project project = getConfiguration().getProject();
|
||||
javaParameters.setShortenCommandLine(getConfiguration().getShortenCommandLine(), project);
|
||||
final Module module = getConfiguration().getConfigurationModule().getModule();
|
||||
|
||||
Sdk jdk = module == null ? ProjectRootManager.getInstance(project).getProjectSdk() : ModuleRootManager.getInstance(module).getSdk();
|
||||
@@ -233,6 +232,8 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
javaParameters.getVMParametersList().addProperty("idea.test.cyclic.buffer.size", String.valueOf(ConsoleBuffer.getCycleBufferSize()));
|
||||
}
|
||||
|
||||
javaParameters.setShortenCommandLine(getConfiguration().getShortenCommandLine(), project);
|
||||
|
||||
return javaParameters;
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.execution.application;
|
||||
|
||||
import com.intellij.codeInsight.daemon.impl.analysis.JavaModuleGraphUtil;
|
||||
@@ -41,7 +41,6 @@ public abstract class ApplicationCommandLineState<T extends
|
||||
protected JavaParameters createJavaParameters() throws ExecutionException {
|
||||
final JavaParameters params = new JavaParameters();
|
||||
T configuration = getConfiguration();
|
||||
params.setShortenCommandLine(configuration.getShortenCommandLine(), configuration.getProject());
|
||||
|
||||
params.setMainClass(myConfiguration.getRunClass());
|
||||
setupJavaParameters(params);
|
||||
@@ -61,6 +60,8 @@ public abstract class ApplicationCommandLineState<T extends
|
||||
|
||||
setupModulePath(params, module);
|
||||
|
||||
params.setShortenCommandLine(configuration.getShortenCommandLine(), configuration.getProject());
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user