cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1299005 - /cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Date Fri, 09 Mar 2012 19:50:05 GMT
Author: dkulp
Date: Fri Mar  9 19:50:05 2012
New Revision: 1299005

URL: http://svn.apache.org/viewvc?rev=1299005&view=rev
Log:
Merged revisions 1298999 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1298999 | dkulp | 2012-03-09 14:32:07 -0500 (Fri, 09 Mar 2012) | 2 lines

  [CXF-4163] Should not add xsd files with no namespace into JAXB

........

Modified:
    cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java

Modified: cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?rev=1299005&r1=1299004&r2=1299005&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
(original)
+++ cxf/branches/2.5.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Fri Mar  9 19:50:05 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