title: Failed to undeploy WildFly 10 using Groovy script
body: <p>I'm trying to undeploy an application on WildFly 10 using Groovy. For undeployment, I'm executing the following command through a Groovy script</p>
  
  <pre><code>'{Wildfly_home}/bin/jboss-cli.sh -c --command="undeploy {earfile}"'.execute()
  </code></pre>
  
  <p>The command wasn't getting executed at all. So I captured error stream which gave me following message:</p>
  
  <pre><code>'***.ear"' is assumed to be a command(s) but the commands to execute have been specified by another argument: ["undeploy]
  </code></pre>
  
  <p>I tried by removing the double quotes as well but of no use.<br>
  Can anyone help me with this?</p>