axistools-maven-plugin ignores WSDL files without ".wsdl" suffix
----------------------------------------------------------------

                 Key: MOJO-1129
                 URL: http://jira.codehaus.org/browse/MOJO-1129
             Project: Mojo
          Issue Type: Bug
          Components: wsdl2java
            Reporter: Vojtech Habarta


When I specify WSDL file named "something.xml" (not "something.wsdl") using 
"sourceDirectory" and "wsdlFiles" configuration parameters then 
axistools-maven-plugin doesn't process it.
This is because plugin uses wrong detection which files where changed. It takes 
all ".wsdl" files in source directory and then filter them, but it should take 
all files listed in "wsdlFiles" (if "wsdlFiles" is used).

The second problem (minor) is with WSDLs that include (transitively) other 
files (WSDL and/or XSD) and this plugin doesn't detect changes in these 
included files but this can be workarounded by using clean.

For the first problem is no workaround so (to quick fix it) I propose to 
replace lines 722-726 in class 
org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin with:

{code}
SourceInclusionScanner scanner = new StaleSourceScanner( staleMillis );
scanner.addSourceMapping( new SuffixMapping( ".wsdl", ".wsdl" ) );
if (wsdlFiles != null) {
  for (Iterator i = wsdlFiles.iterator(); i.hasNext();) {
    String wsdlFile = (String) i.next();
    scanner.addSourceMapping( new SuffixMapping( wsdlFile, wsdlFile ) );
  }
}
{code}


-- 
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