Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5102

AntCodeGenTask fails for wsdl with xsd:import schemaLocation when build file path includes a space character

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.1
    • None
    • codegen
    • Windows & Linux
      JDK1.6, Ant 1.7

    Description

      The AntCodeGenTask fails when the WSDL includes xsd:import statements (schemaLocation references xsds all in same dir) and build is being made in a path which contains a space

      <target name="generate.client" >
      <taskdef name="codegen" classpathref="axis.path"
      classname="org.apache.axis2.tool.ant.AntCodegenTask"/>
      <codegen
      output="${basedir}/src"
      wsdlfilename="${basedir}/wsdl/${wsdl.name}"
      serverside="false"
      generateservicexml="false"
      databindingName="adb"
      packagename="com.company.project.service.stub"
      targetsourcefolderlocation="."
      skipbuildxml="false" />
      </target>

      D:\devenv\workspace\sensibleProjectName\
      ant generate.client
      succeeds

      D:\devenv\workspace\silly project name\
      ant generate.client
      fails

      Attachments

        1. stacktrace.txt
          4 kB
          Rob Say

        Activity

          People

            kishanthan Kishanthan Thangarajah
            robsay Rob Say
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: