geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1024506 - /geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
Date Wed, 20 Oct 2010 02:49:05 GMT
Author: rwonly
Date: Wed Oct 20 02:49:05 2010
New Revision: 1024506

URL: http://svn.apache.org/viewvc?rev=1024506&view=rev
Log:
GERONIMO-5206 Assembly may start failed when server-security-config car is not assembled

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java?rev=1024506&r1=1024505&r2=1024506&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-security/src/main/java/org/apache/geronimo/security/keystore/FileKeystoreManager.java
Wed Oct 20 02:49:05 2010
@@ -101,7 +101,10 @@ public class FileKeystoreManager impleme
             throw new IllegalStateException("FileKeystoreManager must have a root that's
a local directory (not " + rootURI + ")");
         }
         directory = new File(rootURI);
-        if (!directory.exists() || !directory.isDirectory() || !directory.canRead()) {
+        if (!directory.exists()) {
+        	directory.mkdirs();
+        }       	
+        if (!directory.isDirectory() || !directory.canRead()) {
             throw new IllegalStateException("FileKeystoreManager must have a root that's
a valid readable directory (not " + directory.getAbsolutePath() + ")");
         }
         log.debug("Keystore directory is " + directory.getAbsolutePath());



Mime
View raw message