[jboss-jira] [JBoss JIRA] (JBASMP-43) Running CLI script with if-else statement fails
James Perkins (JIRA)
jira-events at lists.jboss.org
Wed May 8 12:31:53 EDT 2013
[ https://issues.jboss.org/browse/JBASMP-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins closed JBASMP-43.
-------------------------------
Fix Version/s: 7.5.Final
Resolution: Rejected
This has already been fixed upstream by upgrading the dependency for the CLI API.
> Running CLI script with if-else statement fails
> -----------------------------------------------
>
> Key: JBASMP-43
> URL: https://issues.jboss.org/browse/JBASMP-43
> Project: JBoss AS Maven Plugins
> Issue Type: Bug
> Affects Versions: 7.4.Final
> Environment: JBoss EAP Alpha1
> JBoss EAP Beta1
> Reporter: Horia Chiorean
> Assignee: James Perkins
> Priority: Critical
> Fix For: 7.5.Final
>
>
> Trying to run a CLI script similar to:
> {code}
> # Remove the test repository if it exists
> if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource
> /subsystem=modeshape/repository=test-ejb:remove
> end-if
> {code}
> via the {{execute-commands}} goal with the following configuration:
> {code}
> <execute-commands>
> <scripts>
> <script>src/main/resources/remove-repository.cli</script>
> </scripts>
> </execute-commands>
> {code}
> always fails with:
> {code}
> Unexpected command 'if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource'. Type 'help --commands' for the list of supported commands.
> {code}
> Running the same CLI script via {{jboss-cli.sh}} works fine. From what I can tell, it would seem that "if/else" statements are not supported.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list