[ 
https://issues.apache.org/jira/browse/CXF-5286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-5286.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.8
         Assignee: Daniel Kulp


Changed to using an SHA1 of the wsdl URL as the filename.  That should solve a 
bunch of potential issues.
                
> Lengthy done-file names raise mojo exception
> --------------------------------------------
>
>                 Key: CXF-5286
>                 URL: https://issues.apache.org/jira/browse/CXF-5286
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.6, 2.7.7
>            Reporter: Erhard Weinell
>            Assignee: Daniel Kulp
>             Fix For: 2.7.8
>
>
> Done-file names can become quite long, even going beyond the allowed 256 
> chars on common file systems. Up until (at least) cxf-2.2, the resulting 
> IOException has been logged as warning with no further consequences. In the 
> most current releases, a MojoExecutionException is raised besides that. 
> C.f. 
> {{org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(GenericWsdlOption,
>  Bus, Set<URI>)}}
> Is this intended behavior? 
> * If so, I suggest an improved way to shorten these filenames, as the current 
> algorithm just strips the project directory if part of the file path. I would 
> prefer stripping common prefixes of these paths instead. I can provide a 
> 2-line patch if desired. 
> * If the behavior is not intended, I would argue raising this exception - 
> which in addition differs from its super-class implementation, should be 
> reverted. 
> Best regards,
>  Erhard Weinell 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to