0 Replies Latest reply on Apr 26, 2013 5:56 AM by Horia Chiorean

    Running if-else statements from CLI script via jboss-as-maven-plugin

    Horia Chiorean Master



      I'm using version 7.4.Final of the jboss-as-maven-plugin and trying to run a CLI script against JBoss EAP 6.1.0 Alpha/Beta via:










      where the first line of script looks like this:



      # Remove the test repository if it exists

      if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource





      I always get the following error:



      Unexpected command 'if (outcome == success) of /subsystem=modeshape/repository=test-ejb:read-resource'. Type 'help --commands' for the list of supported commands.



      while running the same script file via



      ./jboss-cli.sh -c --file=remove-repository.cli



      works fine.


      Is there any reason for this behavior in the plugin and/or a workaround for this ?