cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1298999 - /cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Date Fri, 09 Mar 2012 19:32:08 GMT
Author: dkulp
Date: Fri Mar  9 19:32:07 2012
New Revision: 1298999

URL: http://svn.apache.org/viewvc?rev=1298999&view=rev
Log:
[CXF-4163] Should not add xsd files with no namespace into JAXB

Modified:
    cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java

Modified: cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?rev=1298999&r1=1298998&r2=1298999&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
(original)
+++ cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Fri Mar  9 19:32:07 2012
@@ -590,7 +590,8 @@ public class JAXBDataBinding implements 
                 continue;
             }
             String key = schema.getSourceURI();
-            if (ids.contains(key)) {
+            String tns = schema.getTargetNamespace();
+            if (ids.contains(key) || tns == null) {
                 continue;
             }
             if (key.startsWith("file:") || key.startsWith("jar:")) {



Mime
View raw message