Not sure there's a way to do what I want with jboss-cli, so looking for confirmation.
If I connect to EAP using jboss-cli and run this command to add a module:
[standalone@localhost:9999 /] module add --name="test" --resources="."
Failed to locate C:\EAP-6.4.0\bin\"."
The module add command should create a module.xml with the following element:
<module xmlns="urn:jboss:module:1.1" name="test">
<resources>
<resource-root path="."/>
</resources>
<dependencies>
According to module add --help, it looks like the command expects a physical resource to copy into the directory where module.xml is created:
--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.
The description seems to match the behaviour, so just looking for confirmation that there isn't a "jboss-cli" way, before resorting to sed.
Thanks.