cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nicolas de loof (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2191) cxf-codegen plugin does not accept files with (upper-case) .WSDL extension
Date Mon, 27 Apr 2009 14:08:30 GMT
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.


Mime
View raw message