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 "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/07/25 07:50:14 UTC

[jira] Resolved: (AXIS2-925) WSDL2Java namespace2package option should be additive

     [ http://issues.apache.org/jira/browse/AXIS2-925?page=all ]

Ajith Harshana Ranabahu resolved AXIS2-925.
-------------------------------------------

    Resolution: Fixed

Done - please check with the nightlies. It was a minor fix :)

> WSDL2Java namespace2package option should be additive
> -----------------------------------------------------
>
>                 Key: AXIS2-925
>                 URL: http://issues.apache.org/jira/browse/AXIS2-925
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: databinding
>    Affects Versions: 1.0
>            Reporter: Derek Foster
>            Priority: Minor
>
> Currently, if I use the --namespace2package command line option in WSDL2Java, it completely replaces the contents of any previous --namespace2package options that were encountered when parsing the command line. This means that if I have, say, ten different namespace-to-package mappings, they must all be specified one after the other in a single very long command-line argument. This makes for an ANT file or other invocation script that is really ugly, with a single line that scrolls off the screen far to the right.
> I would like to be able to specify multiple namespace2package options on the command line, with each additional one adding to the previous ones, so that I can do something like this in ANT:
>          <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" failonerror="true">
>             <classpath refid="axis.classpath"/>
>             <arg value="--databinding-method"/>
>             <arg value="xmlbeans"/>
>             <arg value="--uri"/>
>             <arg value="@{wsdl}"/>
>             <arg value="--server-side"/>
>             <arg value="--generate-all"/>
>             <arg value="--service-description"/>
>             <arg value="--output"/>
>             <arg value="@{path}"/>
>             <arg value="--package"/>
>             <arg value="crc.@{package}.wsdl2java"/>
>             <arg value="--namespace2package"/>
>             <arg value="http\://www.dummy-foo-namespace=crc.@{package}.xmlbeans.foo"/>
>             <arg value="--namespace2package"/>
>             <arg value="http\://www.dummy-bar-namespace=crc.@{package}.xmlbeans.bar"/>
>             <arg value="--namespace2package"/>
>             <arg value="http\://www.dummy-baz-namespace=crc.@{package}.xmlbeans.baz"/>
>             <arg value="${tempFile}"/>
>          </java>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org