3 Replies Latest reply on May 8, 2014 7:06 PM by spolti

    CLI help for Wildfly 8.1.0.CR1

    hr.stoyanov

      Hi,

      I am trying to write a robust CLI script and make it continue to work in face of exceptions:

      ...

      try

          module remove --name=org.postgresql

      finally

      end-try

      ...

       

       

      I expected jboss-cli.sh to continue with the next commands. What happens instead is it dies with:

      ...

      Failed to locate module org.postgresql at /home/hristo/java/wildfly-8.1.0.CR1/modules/org/postgresql/main

      ...

       

      How can one write CLI scripts that ignore failures if the try/catch does not work? Also, how can one set properties for scripts - i see some wiki on parametrizing CLI, but no indication if this is done in wildfly?

       

      Thanks