execution: do not show suggestion to set dynamic classpath when it is already set as command line can be too long due to other reasons (IDEA-71124)

This commit is contained in:
anna
2011-06-20 14:24:38 +04:00
parent d97c45981c
commit 74db8d94e8
@@ -58,7 +58,9 @@ public class ExecutionUtil {
String error = e.getMessage();
HyperlinkListener listener = null;
if (error.contains("87") && e instanceof ProcessNotCreatedException) {
if (error.contains("87") &&
e instanceof ProcessNotCreatedException &&
!PropertiesComponent.getInstance(project).isTrueValue("dynamic.classpath")) {
final String commandLineString = ((ProcessNotCreatedException)e).getCommandLine().getCommandLineString();
if (commandLineString.length() > 1024 * 32) {
error = "Command line is too long. In order to reduce its length classpath file can be used.<br>" +