cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r719382 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
Date Thu, 20 Nov 2008 21:29:29 GMT
Author: dkulp
Date: Thu Nov 20 13:29:29 2008
New Revision: 719382

URL: http://svn.apache.org/viewvc?rev=719382&view=rev
Log:
[CXF-1905] Fix detection of whether schemaLocation needs to be added

Modified:
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java?rev=719382&r1=719381&r2=719382&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
Thu Nov 20 13:29:29 2008
@@ -492,6 +492,15 @@
                     break;
                 }
             }
+            nlist = root.getElementsByTagNameNS(ToolConstants.JAXB_BINDINGS.getNamespaceURI(),
+                                                "globalBindings");
+            for (int i = 0; i < nlist.getLength(); i++) {
+                Node node = nlist.item(i);
+                if (node instanceof Element) {
+                    hasJaxbBindingChild = true;
+                    break;
+                }
+            }
                            
             if (StringUtils.isEmpty(schemaLocation) && !hasJaxbBindingChild) {
                 InputSource tmpIns = null;



Mime
View raw message