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): 7.1.1-2.fc17-noarch How reproduciable: 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: 1. Execute: 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/' Actual results: 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/) Expected results: 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 Additional info: 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: https://github.com/fedora-jboss-as/jboss-as-rpm/commit/54e0c87067da3c39ce30ad6812fd944d53e7eb63 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. https://admin.fedoraproject.org/updates/jboss-as-7.1.1-4.fc17
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.