HI guys!
I try to call Axis2 WSDL2JAVA in my ant file to create a WSDL client. But it's broken because I have whitespaces in my path (I'm on Windows...). This is my ant
<property name="wsdl.file" location="C:\path with whitespaces\project\subdir\my.wsdl"/>
...
<target name="generate.client" depends="Clean.Client">
<java classname="org.apache.axis2.wsdl.WSDL2Java">
<arg value="-uri" />
<arg file="${wsdl.file}"/>
<arg value="-u"/>
<arg value="-p"/>
<arg value="my.package.declaration"/>
<arg value="-S"/>
<arg value="src/test"/>
...
<classpath refid="axis2.classpath"/>
</java>
</target>
When I try to run it, I get this errors:
[java] Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/path with whitespaces/project/subdir/my.wsdl
[java] at java.net.URI$Parser.fail(URI.java:2809)
[java] at java.net.URI$Parser.checkChars(URI.java:2982)
[java] at java.net.URI$Parser.parseHierarchical(URI.java:3066)
[java] at java.net.URI$Parser.parse(URI.java:3014)
[java] at java.net.URI.<init>(URI.java:578)
[java] at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
[java] ... 39 more
I tried to add & quot; to my property, but it doesn't work and gives me a doubled path then. I also tried to change the nested arg value= to arg line= but it's the same.
Is this really a but that stops me from building from a directory with whitespaces? I can't believe it's still happening these days... :-(
Update I can't move the project to get rid of the whitespaces.