You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/11/20 22:29:29 UTC
svn commit: r719382 -
/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
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;