cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r733512 - in /cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/common/ javato/ws/src/main/java/org/apache/cxf/tools/java2js/ javato/ws/src/main/java/org/apache/cxf/tools/java2ws/ wsdlto/core/src/main/java/org/apache/cxf/tools/wsdl...
Date Sun, 11 Jan 2009 20:26:39 GMT
Author: bimargulies
Date: Sun Jan 11 12:26:38 2009
New Revision: 733512

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

Modified:
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Messages.properties
    cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/JavaToJS.java
    cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties
    cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/Messages.properties
    cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
    cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/Messages.properties
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Messages.properties?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Messages.properties (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Messages.properties Sun
Jan 11 12:26:38 2009
@@ -18,6 +18,7 @@
 #    under the License.
 #
 #
+DIRECTORY_COULD_NOT_BE_CREATED = Directory : {0} could not be created
 DIRECTORY_NOT_EXIST = Directory: {0} does not exist
 NOT_A_DIRECTORY = {0} is not a directory
 FILE_NOT_EXIST = File does not exist

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/JavaToJS.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/JavaToJS.java?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/JavaToJS.java (original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2js/JavaToJS.java Sun
Jan 11 12:26:38 2009
@@ -87,8 +87,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties
(original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/Messages.properties
Sun Jan 11 12:26:38 2009
@@ -18,6 +18,7 @@
 #    under the License.
 #
 #
+DIRECTORY_COULD_NOT_BE_CREATED = Directory : {0} could not be created
 DIRECTORY_NOT_EXIST = Directory : {0} does not exist
 NOT_A_DIRECTORY = {0} is not a directory
 FILE_NOT_EXIST = File does not exist

Modified: cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/Messages.properties?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/Messages.properties
(original)
+++ cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/Messages.properties
Sun Jan 11 12:26:38 2009
@@ -18,6 +18,7 @@
 #    under the License.
 #
 #
+DIRECTORY_COULD_NOT_BE_CREATED = Directory : {0} could not be created
 DIRECTORY_NOT_EXIST = Directory: {0} does not exist
 PARAMETER_MISSING = Required parameter is missing
 SERVICE_NOT_FOUND = No service was found in wsdl: {0}

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=733512&r1=733511&r2=733512&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
Sun Jan 11 12:26:38 2009
@@ -354,8 +354,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {
@@ -368,8 +368,8 @@
             String clsdir = (String)env.get(ToolConstants.CFG_CLASSDIR);
             if (clsdir != null) {
                 File dir = new File(clsdir);
-                if (!dir.exists()) {
-                    Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, clsdir);
+                if (!dir.exists() && !dir.mkdirs()) {
+                    Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, clsdir);
                     throw new ToolException(msg);
                 }
             }

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=733512&r1=733511&r2=733512&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
Sun Jan 11 12:26:38 2009
@@ -211,7 +211,7 @@
         if (outdir != null) {
             File dir = new File(outdir);
             if (!dir.exists() && !dir.mkdirs()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {
@@ -225,7 +225,7 @@
             if (clsdir != null) {
                 File dir = new File(clsdir);
                 if (!dir.exists() && !dir.mkdirs()) {
-                    Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, clsdir);
+                    Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, clsdir);
                     throw new ToolException(msg);
                 }
             }

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/Messages.properties?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/Messages.properties
(original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/Messages.properties
Sun Jan 11 12:26:38 2009
@@ -18,6 +18,7 @@
 #    under the License.
 #
 #
+DIRECTORY_COULD_NOT_BE_CREATED = Directory : {0} could not be created
 DIRECTORY_NOT_EXIST = Directory : {0} does not exist
 NOT_A_DIRECTORY = {0} is not a directory
 FILE_NOT_EXIST = File does not exist

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
(original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToService.java
Sun Jan 11 12:26:38 2009
@@ -92,8 +92,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java (original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToSoap.java Sun
Jan 11 12:26:38 2009
@@ -106,8 +106,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java (original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/WSDLToXML.java Sun
Jan 11 12:26:38 2009
@@ -106,8 +106,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java?rev=733512&r1=733511&r2=733512&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java (original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/XSDToWSDL.java Sun
Jan 11 12:26:38 2009
@@ -87,8 +87,8 @@
         String outdir = (String)env.get(ToolConstants.CFG_OUTPUTDIR);
         if (outdir != null) {
             File dir = new File(outdir);
-            if (!dir.exists()) {
-                Message msg = new Message("DIRECTORY_NOT_EXIST", LOG, outdir);
+            if (!dir.exists() && !dir.mkdirs()) {
+                Message msg = new Message("DIRECTORY_COULD_NOT_BE_CREATED", LOG, outdir);
                 throw new ToolException(msg);
             }
             if (!dir.isDirectory()) {



Mime
View raw message