You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Patrick Huber (JIRA)" <ji...@apache.org> on 2007/10/30 13:10:51 UTC
[jira] Commented: (AXIS2-2633) axis2-wsdl2code-maven-plugin missing
extension option "bindingfile" for JiBX
[ https://issues.apache.org/jira/browse/AXIS2-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538750 ]
Patrick Huber commented on AXIS2-2633:
--------------------------------------
Hi there
I'm currently kind of looking into this because I intend to use jibx in a project.
In the current Trunk [1] there is this snippet:
---
Iterator iterator = options.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
String key = CommandLineOptionConstants.WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX + entry.getKey();
String value = (String) entry.getValue();
optionMap.put(
key,
new CommandLineOption(
key,
new String[]{value}));
}
---
now, when I add an element "options" element like this:
---
<configuration>
<databindingName>jibx</databindingName>
<options>
<bindingfile>src/main/jibx/mappings.xml</bindingfile>
</options>
---
I'm still getting the same error, outputting "options.entrySet().size()" to the console gives a size of zero.
Any hints to point me in the right direction? I have absolutely no experience with hacking maven plugins so all help is apreciated.
[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-wsdl2code-maven-plugin/src/main/java/org/apache/axis2/maven2/wsdl2code/WSDL2CodeMojo.java?revision=560106&view=markup
> axis2-wsdl2code-maven-plugin missing extension option "bindingfile" for JiBX
> ----------------------------------------------------------------------------
>
> Key: AXIS2-2633
> URL: https://issues.apache.org/jira/browse/AXIS2-2633
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Tools
> Affects Versions: 1.2
> Environment: all platforms
> Reporter: Armin Ehrenfels
> Assignee: Jochen Wiedmann
>
> axis2-wsdl2code-maven-plugin doesn't support extension options such as "-Ebindingfile" for JiBX.
> SUGGESTION:
> 1. in the plugin configuration, introducing an additional option <extensionOptions>, similar to namespaceURIs, like this:
>
> <extensionOptions>
> <extensionOption>
> <name>xxx</name>
> <value>yyy</value>
> </extensionOption>
> ...
> </extensionOptions>
> 2. in the mojo, for each extension option adding the name/value pair to optionsMap.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org