Branch: refs/heads/master Home: https://github.com/rhq-project/rhq Commit: 62b5a80761270d3b8a16e2899383d890feeca272 https://github.com/rhq-project/rhq/commit/62b5a80761270d3b8a16e2899383d890fe... Author: Thomas Segismont tsegismo@redhat.com Date: 2014-09-19 (Fri, 19 Sep 2014)
Changed paths: M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/BaseServerComponent.java M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/ServerControl.java A modules/plugins/jboss-as-7/src/main/resources/jboss-cli-wrapper.bat
Log Message: ----------- Bug 1139684 - eap cli script does not get correct result code for eap domain server on windows
This is due to "WFLY-3578 jboss-cli.bat always exits with return code 0 even after a cli failure" https://issues.jboss.org/browse/WFLY-3578
Added jboss-cli-wrapper.bat Calling "cmd /c jboss-cli.bat" will always return 0 even if an error occurs in the CLI Calling it through the wrapper solves the issue
Side work: * fix standalone and domain startup: start script prefix, if set, was not added * when an error occurs, execute command and execute script operations now copy process output into the operation result instead of the error message * some code cleanup (avoid possible NPE)
rhq-commits@lists.fedorahosted.org