cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r539529 - in /incubator/cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/util/ wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/core/ wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/
Date Fri, 18 May 2007 17:24:28 GMT
Author: dkulp
Date: Fri May 18 10:24:27 2007
New Revision: 539529

URL: http://svn.apache.org/viewvc?view=rev&rev=539529
Log:
Remove some duplicate code, make sure some writers are closed so files aren't locked on windows.


Removed:
    incubator/cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/core/VelocityWriter.java
Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/Compiler.java
    incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/HandlerConfigGenerator.java

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/Compiler.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/Compiler.java?view=diff&rev=539529&r1=539528&r2=539529
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/Compiler.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/Compiler.java
Fri May 18 10:24:27 2007
@@ -82,6 +82,7 @@
                     }
                 }
                 out.flush();
+                out.close();
                 cmdArray = new String[sourceFileIndex + 1];
                 System.arraycopy(args, 0, cmdArray, 0, sourceFileIndex);
                 cmdArray[sourceFileIndex] = "@" + tmpFile;

Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/HandlerConfigGenerator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/HandlerConfigGenerator.java?view=diff&rev=539529&r1=539528&r2=539529
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/HandlerConfigGenerator.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/HandlerConfigGenerator.java
Fri May 18 10:24:27 2007
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.tools.wsdlto.frontend.jaxws.generators;
 
+import java.io.IOException;
 import java.io.Writer;
 
 import org.w3c.dom.Element;
@@ -81,7 +82,14 @@
         }
     }
 
-    private void generateHandlerChainFile(Element hChains, Writer writer) throws ToolException
{
-        XMLUtils.generateXMLFile(hChains, writer);
+    private void generateHandlerChainFile(Element hChains, Writer writer) 
+        throws ToolException {
+        
+        try {
+            XMLUtils.generateXMLFile(hChains, writer);
+            writer.close();
+        } catch (IOException ex) {
+            throw new ToolException(ex);
+        }
     }
 }



Mime
View raw message