geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1291334 - /geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java
Date Mon, 20 Feb 2012 16:08:16 GMT
Author: xiaming
Date: Mon Feb 20 16:08:15 2012
New Revision: 1291334

URL: http://svn.apache.org/viewvc?rev=1291334&view=rev
Log:
GERONIMO-6282 Test if the repository folder of the new instance exists to avoid NPE

Modified:
    geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java

Modified: geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java?rev=1291334&r1=1291333&r2=1291334&view=diff
==============================================================================
--- geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java
(original)
+++ geronimo/server/branches/3.0-beta/framework/modules/geronimo-main/src/main/java/org/apache/geronimo/main/FrameworkLauncher.java
Mon Feb 20 16:08:15 2012
@@ -456,6 +456,12 @@ public class FrameworkLauncher {
     }
 
     private static File findFile(File dir, String name) {
+        if (!dir.exists()) dir.mkdir();
+        if (!dir.isDirectory()) {
+            dir.delete();
+            dir.mkdir();
+        }
+        
         File theFile = new File(dir, name);
 
         if (theFile.exists() && !theFile.isDirectory()) {



Mime
View raw message