cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2191) cxf-codegen plugin does not accept files with (upper-case) .WSDL extension
Date Fri, 10 Jul 2009 16:05:14 GMT

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

Daniel Kulp resolved CXF-2191.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.3
                   2.1.6
         Assignee: Daniel Kulp

> 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
>            Assignee: Daniel Kulp
>            Priority: Trivial
>             Fix For: 2.1.6, 2.2.3
>
>
> 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