From 74db8d94e8ee5c7d84dc27ff61d2ee48876f2ea0 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 20 Jun 2011 13:38:42 +0400 Subject: [PATCH] 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) --- .../src/com/intellij/execution/runners/ExecutionUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/execution/runners/ExecutionUtil.java b/platform/lang-api/src/com/intellij/execution/runners/ExecutionUtil.java index 1ace770954c4..2c222b02618a 100644 --- a/platform/lang-api/src/com/intellij/execution/runners/ExecutionUtil.java +++ b/platform/lang-api/src/com/intellij/execution/runners/ExecutionUtil.java @@ -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.
" +