title: How to call WSDL2JAVA from ant with whitespaces in my path
body: <p>HI guys!</p>
  
  <p>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</p>
  
  <pre><code>&lt;property name="wsdl.file" location="C:\path with whitespaces\project\subdir\my.wsdl"/&gt;
  ...
  &lt;target name="generate.client" depends="Clean.Client"&gt;
      &lt;java  classname="org.apache.axis2.wsdl.WSDL2Java"&gt;
          &lt;arg value="-uri" /&gt;
          &lt;arg file="${wsdl.file}"/&gt;
          &lt;arg value="-u"/&gt;
          &lt;arg value="-p"/&gt;
          &lt;arg value="my.package.declaration"/&gt;
          &lt;arg value="-S"/&gt;
          &lt;arg value="src/test"/&gt;
          ...
          &lt;classpath refid="axis2.classpath"/&gt;
      &lt;/java&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>When I try to run it, I get this errors:</p>
  
  <pre><code>[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.&lt;init&gt;(URI.java:578)
   [java]     at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:57)
   [java]     ... 39 more
  </code></pre>
  
  <p>I tried to add <em>&amp; quot;</em> to my property, but it doesn't work and gives me a doubled path then. I also tried to change the nested <em>arg value=</em> to <em>arg line=</em> but it's the same.</p>
  
  <p>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... :-(</p>
  
  <p><strong>Update</strong> I can't move the project to get rid of the whitespaces.</p>