Red Hat Bugzilla – Bug 1015400
CLI module command doesn't allow cross platform resource paths
Last modified: 2015-06-15 09:47:42 EDT
Description of problem:
Backport of WFLY-1871 to EAP.
The CLI module command has an argument called "resources". This argument allows you to specify one or more resources separated by the platform-specific path separator. The problem with this is that you can not create a platform-independent script that uses this resources argument.
I have not found a universal path separator character that would work. However, since the creator of the script knows the characters used in his path, we can allow him to specify his own separator.
As an enhancement, I propose to add an argument called "resourceDelimiter". If present, the ASModuleHandler class will use the user-defined delimiter instead of the platform-specific path separator character.
module add --name=org.foo --resources=firstResource.jar:secondResource.jar --resourceDelimiter=: --module-xml=foo-module.xml
The above command would work on Unix, Windows, or any other platform.
ok, just, please, follow the argument naming convention, i.e. --resource-delimiter
Changed to Enhancement.
Stan Silvert <email@example.com> updated the status of jira WFLY-1871 to Reopened
Stan Silvert <firstname.lastname@example.org> made a comment on jira WFLY-1871
Reopening. The naming convention issue on the resource delimiter was missed the first time around.
Stan Silvert <email@example.com> updated the status of jira WFLY-1871 to Resolved
Triage, no RFE in 6.4.z