You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/10/29 16:45:59 UTC

[jira] Assigned: (CXF-1026) multiple-occurence arguments don't seem to work in tooling argument processing

     [ https://issues.apache.org/jira/browse/CXF-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-1026:
--------------------------------

    Assignee: Daniel Kulp

> 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
>            Assignee: Daniel Kulp
>
> 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.