You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2008/03/12 12:01:58 UTC

svn commit: r636279 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Author: deepal
Date: Wed Mar 12 04:01:46 2008
New Revision: 636279

URL: http://svn.apache.org/viewvc?rev=636279&view=rev
Log:
we first need to check whether the temp + _axis2 is there if not we need to create that 
 (since if the file.mkdir() returns false if the folder is already there)

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?rev=636279&r1=636278&r2=636279&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Wed Mar 12 04:01:46 2008
@@ -214,8 +214,10 @@
         int count;
         File f;
         if (tmpDir == null) {
-            if (! new File(System.getProperty("java.io.tmpdir"), "_axis2").mkdirs()) {
-                throw new IOException("Unable to create the directory");
+            if (!new File(System.getProperty("java.io.tmpdir"), "_axis2").exists()) {
+                if (! new File(System.getProperty("java.io.tmpdir"), "_axis2").mkdirs()) {
+                    throw new IOException("Unable to create the directory");
+                }
             }
             File tempFile = new File(System.getProperty("java.io.tmpdir"), "_axis2");
             f = File.createTempFile("axis2", suffix, tempFile);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org