[ 
http://jira.codehaus.org/browse/MXMLBEANS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David J. M. Karlsen updated MXMLBEANS-49:
-----------------------------------------

              Assignee: David J. M. Karlsen
    Remaining Estimate: 0 minutes
     Original Estimate: 0 minutes

> getWsdlFiles() false positives when using <sourceSchemas>
> ---------------------------------------------------------
>
>                 Key: MXMLBEANS-49
>                 URL: http://jira.codehaus.org/browse/MXMLBEANS-49
>             Project: Maven 2.x Xmlbeans Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3.2
>         Environment: not applicable
>            Reporter: Jacob Barde
>            Assignee: David J. M. Karlsen
>         Attachments: wsdl_false_positive_patch.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> I think this relates to the fix that was done for MXMLBEANS-42.
> when using <sourceSchemas> to specify xsds [and/or wsdls] the 
> AbstractXmlBeansPlugin.getFiles(...) method would load the files specified 
> regardless of the includeFilter (e.g. "**/*.wsdl").  This created a situation 
> where if you specified xsd files with sourceSchema entries, even when 
> getWsdlFiles() would get sourceSchema entries as an array of files that are 
> supposed to be wsdls.
> pom.xml:
> **snipped**
> <sourceSchemas>
>   <sourceSchema>path1\foo.xsd</sourceSchema>
>   <sourceSchema>path2\bar.xsd</sourceSchema>
> </sourceSchemas>
> **snipped**
> __end__
> This would result in errors, e.g.:
> [DEBUG] Artifact count: 9
> [DEBUG] looking for artifact schemas.
> [DEBUG] Number of XSD Files: 2
> [DEBUG] Number of WSDL Files: 2
> [DEBUG] Creating a list of config files.
> **snipped**
> xml ErrorC:\JAVA\...\foo.xsd:0: error: invalid.document.type: Document 
> C:\JAVA\...\foo.xsd is not a wsdl file
> xml ErrorC:\JAVA\...\bar.xsd:0: error: invalid.document.type: Document 
> C:\JAVA\...\bar.xsd is not a wsdl file
> I've attached a hacked patch that solves the issue for my purposes and 
> hopefully others

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to