cxf-codegen plugin does not accept files with (upper-case) .WSDL extension
--------------------------------------------------------------------------
Key: CXF-2191
URL: https://issues.apache.org/jira/browse/CXF-2191
Project: CXF
Issue Type: Bug
Affects Versions: 2.2.1
Reporter: nicolas de loof
Priority: Trivial
The plugin hardcodes the WSDL file extension ".wsdl". Using upper-case
filenames breaks with :
[INFO] String index out of range: -1[INFO]
------------------------------------------------------------------------[INFO]
Tracejava.lang.StringIndexOutOfBoundsException: String index out of range: -1at
java.lang.String.substring(String.java:1768)at
org.apache.cxf.maven_plugin.WsdlOptionLoader.findJobs(WsdlOptionLoader.java:121)
String wsdlName = wsdl.getName();
wsdlName = wsdlName.substring(0, wsdlName.indexOf(".wsdl"));
using the last dot in filename to remove extension would solver this :
String wsdlName = wsdl.getName();
int lastDot = wsdlName.lastIndexOf( '.' );
wsdlName = wsdlName.substring(0, lastDot);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.