Erhard Weinell created CXF-5286:
-----------------------------------

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


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