[jboss-jira] [JBoss JIRA] (JBASMP-43) Running CLI script with if-else statement fails

Horia Chiorean (JIRA) jira-events at lists.jboss.org
Tue May 7 03:53:53 EDT 2013


     [ https://issues.jboss.org/browse/JBASMP-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Horia Chiorean updated JBASMP-43:
---------------------------------

    Description: 
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.

  was:
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 see that "if/else" statements are not supported.


    
> 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
>
> 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