IDEA-167820 - Weblogic shutdown fails is password contains "@"

This commit is contained in:
Michael Golubev
2017-03-07 14:03:08 +01:00
parent a8f5fdf7ad
commit c98696ec5d
@@ -64,7 +64,7 @@ public class CommandLineUtil {
}
}
if (winShell && StringUtil.containsAnyChar(parameter, WIN_SHELL_SPECIALS)) {
if (winShell && isSpecialQuoteNeeded(parameter)) {
parameter = quote(parameter, SPECIAL_QUOTE);
}
@@ -118,4 +118,8 @@ public class CommandLineUtil {
return new File(StringUtil.unquoteString(execName)).getName();
}
public static boolean isSpecialQuoteNeeded(String parameter) {
return StringUtil.containsAnyChar(parameter, WIN_SHELL_SPECIALS);
}
}