Multiple property substitution is working with EAP 6.4.3+, however, if a variable amongst the multiple variables is empty or has no value, then the subsequent property in the CLI command is not substituted. For example : cat props.properties ----------------------------------------- PROFILE-NAME=TestProfile SERVER-INSTANCE-NUMBER=TestInstance APP-VERSION= VAR=test ----------------------------------------- cat test.cli : --------------------------------------- /host=master/server-config=${PROFILE-NAME}${APP-VERSION}${SERVER-INSTANCE-NUMBER}${VAR}:add(auto-start=true, group="${PROFILE-NAME}${APP-VERSION}-server-group") --------------------------------------- and if I execute "./jboss-cli.sh --connect --file=test.cli --properties=props.properties" then I have the following in the host.xml ": ---------- ... <server name="TestProfile${SERVER-INSTANCE-NUMBER}test" group="TestProfile-server-group" auto-start="true"/> ... ----------- Note APP-VERSION had no value, and so the subsequent SERVER-INSTANCE-NUMBER was not properly resolved
I have created upstream WFCORE-1198 to throw an UnresolvedExpressionException with informative message in such case, just to avoid to write unresolved value into configuration file in such case.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Verified with EAP 6.4.12.CP.CR1; -- Note: In order to get it work as expected, "resolve-parameter-values" in jboss-cli.xml must be set to true.
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.