[
https://issues.redhat.com/browse/WFCORE-5241?page=com.atlassian.jira.plug...
]
Chao Wang commented on WFCORE-5241:
-----------------------------------
It turns out this happens as a result of the change in WFCORE-2338
([
https://github.com/wildfly/wildfly-core/pull/2227]) after WFLY 10.
{quote}In .sh script, use exec instead of eval making the script to be replaced by java
process.
{quote}
whitespace is not escaped for $JAVA_OPTS in {{exec}} command. (please see
[
https://github.com/wildfly/wildfly-core/pull/2227/files#diff-b1c0aede6367...])
enclose the {{JAVA_OPTS}} with double quote should fix it. WDYT [~jdenise] ?
Jboss-cli issue with spaces in JAVA_OPTS on Unix
------------------------------------------------
Key: WFCORE-5241
URL:
https://issues.redhat.com/browse/WFCORE-5241
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Davy Koravand
Assignee: Jean Francois Denise
Priority: Major
When having spaces in JAVA_OPTS on a Unix machine, calls to jboss-cli.sh will fail (see
repro steps for the error). It looks like spaces aren't handled well. It works fine
for WF10 but fails on WF21, I'm not sure about the versions in between.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)