Red Hat Bugzilla – Bug 827571
jboss-as-cp script is missing argument placeholder for c optarg
Last modified: 2014-07-24 23:19:23 EDT
Description of problem:
The jboss-as-cp script is missing the argument placeholder for the c optarg.
Version-Release number of selected component (if applicable):
Any time you use the -c argument with a value (or otherwise), the command fails to copy a configuration file from the /usr/share/jboss-as/docs/examples/configs directory.
Steps to Reproduce:
jboss-as-cp -l $HOME/jboss-as-user-instance -c standalone-web.xml
2. Observe the message:
cp: omitting directory `/usr/share/jboss-as/docs/examples/configs/'
The config specified on the commandline (in this case standalone-web.xml) should be copied from /usr/share/jboss-as/docs/examples/configs (in this case /usr/share/jboss-as/docs/examples/configs/standalone-web.xml) to the configuration directory of the user instance being created (in this case $HOME/jboss-as-user-instance/configuration/)
The config specified on the commandline (in this case standalone-web.xml) should be copied to the configuration directory of the user instance being created (in this case $HOME/jboss-as-user-instance/configuration
The problem is that the colon is missing after the optarg in the following line in the script:
while getopts “hcl:” OPTION
It should be:
while getopts “hc:l:” OPTION
As a result of the missing colon, the value of the STANDALONE_XML variable is empty.
I can confirm this. It'll be fixed soon.
Fixed in upstream:
It'll be available in jboss-as-7.1.1-4.
jboss-as-7.1.1-4.fc17 has been submitted as an update for Fedora 17.
jboss-as-7.1.1-4.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.