multiple-occurence arguments don't seem to work in tooling argument processing
------------------------------------------------------------------------------
Key: CXF-1026
URL: https://issues.apache.org/jira/browse/CXF-1026
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.0.1
Reporter: benson margulies
The command-line parsing system allows for multiple occurences of options in
the xml spec for an option. For example:
<option id="beans" maxOccurs="unbounded">
<annotation>Specify the pathname of a file
defining additional Spring beans to customize databinding
configuration.</annotation>
<switch>beans</switch>
<associatedArgument placement="afterSpace">
<annotation>pathname of the bean
definition file.</annotation>
</associatedArgument>
</option>
However, these don't seem to really work. By the time the code assembles the
HashMap from options to values, any non-first occurences any option are
discarded without diagnosis. It seems to me that, if maxOccurs != 1, that the
value in the map should be a List<String>, accumulated from the occurences.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.