[ 
https://issues.apache.org/jira/browse/AXIS2-2479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544407
 ] 

Mauro Molinari commented on AXIS2-2479:
---------------------------------------

The problem also affects URI resolving when target files are in paths with 
spaces.
I mean, suppose you are in:
c:\folder with spaces\
and, from there, you run:
wsdl2java MyWSDL.wsdl
if this WSDL imports a schema with a relative path to a XSD that is in some way 
inside c:\folder with spaces, the URI resolves to "file:/c:/folder with 
spaces/..." (without double quotes), which rises an URISyntaxException. In 
fact, spaces should be encoded to %20.

It may be useful to create the URI using new URL(String).toURI() instead of new 
URI(String).

> Shell scripts do not tolerate AXIS2_HOME and JAVA_HOME with spaces in paths
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-2479
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2479
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Tools
>    Affects Versions: nightly
>         Environment: Cygwin atop Windows
>            Reporter: Steven E. Harris
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>         Attachments: axis2.sh.patch, axis2server.sh.patch, wsdl2java.sh.patch
>
>
> Several of the scripts provided in AXIS2_HOME/bin do not tolerate paths with 
> spaces, such as those for JAVA_HOME and AXIS2_HOME being located under, say, 
> "C:\Program Files\...", or, in Cygwin terms, something like "/mnt/c/Program 
> Files/..."
> I've prepared patches for axis2.sh, axis2server.sh, and wsdl2java.sh that 
> alleviate this problem by adding more quoting to the path-related variables 
> in the scripts.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to