cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r730889 - /cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Date Sat, 03 Jan 2009 02:12:34 GMT
Author: bimargulies
Date: Fri Jan  2 18:12:32 2009
New Revision: 730889

URL: http://svn.apache.org/viewvc?rev=730889&view=rev
Log:
CXF-1962

Modified:
    cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java

Modified: cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java?rev=730889&r1=730888&r2=730889&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Fri Jan  2 18:12:32 2009
@@ -213,8 +213,10 @@
         if (outdir != null) {
             File dir = new File(outdir);
             if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
-                throw new ToolException(msg);
+            	if ( !dir.mkdirs() ) {
+                	Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+                	throw new ToolException(msg);
+				}
             }
             if (!dir.isDirectory()) {
                 Message msg = new Message("NOT_A_DIRECTORY", LOG, outdir);
@@ -227,8 +229,10 @@
             if (clsdir != null) {
                 File dir = new File(clsdir);
                 if (!dir.exists()) {
-                    Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, clsdir);
-                    throw new ToolException(msg);
+                	if ( !dir.mkdirs() ) {
+                    	Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, clsdir);
+                    	throw new ToolException(msg);
+                    }
                 }
             }
         }



Mime
View raw message