title: How can you add "." as a resource-root to a module using jboss-cli?
body: <p>Not sure there's a way to do what I want with jboss-cli, so looking for confirmation.</p>
  
  <p>If I connect to EAP using jboss-cli and run this command to add a module:</p>
  
  <pre><code>[standalone@localhost:9999 /] module add --name="test" --resources="."
  Failed to locate C:\EAP-6.4.0\bin\"."
  </code></pre>
  
  <p>The module add command <em>should</em> create a module.xml with the following element:
      </p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.1" name="test"&gt;
  
      &lt;resources&gt;
          &lt;resource-root path="."/&gt;
      &lt;/resources&gt;
  
  &lt;dependencies&gt;
  </code></pre>
  
  <p>According to module add --help, it looks like the command expects a physical resource to copy into the directory where module.xml is created:</p>
  
  <pre><code> --resources     - (used with add, required unless module-xml is used) a list of
                 filesystem paths (usually jar files) separated by a
                 filesystem-specific path separator, i.e.
                 java.io.File.pathSeparatorChar. The file(s) specified will be
                 copied to the created module's directory.
  </code></pre>
  
  <p>The description seems to match the behaviour, so just looking for confirmation that there isn't a "jboss-cli" way, before resorting to sed.</p>
  
  <p>Thanks.</p>