cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1071525 - /cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Date Thu, 17 Feb 2011 07:23:31 GMT
Author: ffang
Date: Thu Feb 17 07:23:30 2011
New Revision: 1071525

URL: http://svn.apache.org/viewvc?rev=1071525&view=rev
Log:
[CXF-3340]remove definition cache when use wsdl2java so it works in case that wsdl content
changes with same wsdlurl

Modified:
    cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java

Modified: cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java?rev=1071525&r1=1071524&r2=1071525&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
(original)
+++ cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Thu Feb 17 07:23:30 2011
@@ -67,6 +67,7 @@ import org.apache.cxf.tools.validator.Se
 import org.apache.cxf.tools.wsdlto.core.AbstractWSDLBuilder;
 import org.apache.cxf.tools.wsdlto.core.DataBindingProfile;
 import org.apache.cxf.tools.wsdlto.core.FrontEndProfile;
+import org.apache.cxf.wsdl.WSDLManager;
 import org.apache.cxf.wsdl11.WSDLServiceBuilder;
 
 public class WSDLToJavaContainer extends AbstractCXFToolContainer {
@@ -199,7 +200,9 @@ public class WSDLToJavaContainer extends
                 } else {
                     serviceList = serviceBuilder.buildMockServices(definition);
                 }
-
+                //remove definition from cache so that won't fail when encounter same wsdl
file
+                //name but different wsdl content(CXF-3340)
+                getBus().getExtension(WSDLManager.class).removeDefinition(definition);
             } else {
                 // TODO: wsdl2.0 support
             }



Mime
View raw message