cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1065483 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
Date Mon, 31 Jan 2011 05:39:48 GMT
Author: ffang
Date: Mon Jan 31 05:39:48 2011
New Revision: 1065483

URL: http://svn.apache.org/viewvc?rev=1065483&view=rev
Log:
[CXF-3296]wsdl2java tool should always use catalog to resovle the overwriten url firstly

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=1065483&r1=1065482&r2=1065483&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
Mon Jan 31 05:39:48 2011
@@ -90,10 +90,11 @@ public final class CustomizationParser {
         try {
             wsdlURL = URIParserUtil.getAbsoluteURI((String)env.get(ToolConstants.CFG_WSDLURL));
 
-            wsdlNode = getTargetNode(this.wsdlURL);
-
-            if (wsdlNode == null && env.get(ToolConstants.CFG_CATALOG) != null) {
+            if (env.get(ToolConstants.CFG_CATALOG) != null) {
                 wsdlNode = resolveNodeByCatalog(wsdlURL);
+            } 
+            if (wsdlNode == null) {
+                wsdlNode = getTargetNode(this.wsdlURL);
             }
             
             if (wsdlNode == null) {
@@ -132,6 +133,9 @@ public final class CustomizationParser {
     }
 
     public Element getTargetNode(String uri) {
+        if (uri == null) {
+            return null;
+        }
         if (uri.equals(wsdlURL) && wsdlNode != null) {
             return wsdlNode;
         }



Mime
View raw message