[java-idp-jetty-base] 01/04: IDP-2297 Explore extending the Plugin and Module Infrastructure to allow Jetty installation

Rod Widdowson rdw at steadingsoftware.com
Wed Sep 25 13:37:49 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch dev/IDP-2297
in repository java-idp-jetty-base.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=63b4cf165367eed276f6cc6b670c0a4e951128b6

commit 63b4cf165367eed276f6cc6b670c0a4e951128b6
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Aug 10 15:26:57 2024 +0100

    IDP-2297 Explore extending the Plugin and Module Infrastructure to allow Jetty installation
    
    https://shibboleth.atlassian.net/browse/IDP-2297
    
    Bug fix: allow the directories we create to exist already
---
 .../java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java b/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
index 5fee719..6103e9f 100644
--- a/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
+++ b/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
@@ -49,9 +49,9 @@ public class JettyBaseModule extends PluginIdPModule {
         final Path jettyBase = idpHome.resolve("jetty-base");
         log.debug("Creating directories (if needed): 'credentials', 'logs', 'static', 'tmp' below {}", jettyBase);
         try {
-            Files.createDirectory(jettyBase.resolve("logs"));
-            Files.createDirectory(idpHome.resolve("static"));
-            Files.createDirectory(jettyBase.resolve("tmp"));
+            Files.createDirectories(jettyBase.resolve("logs"));
+            Files.createDirectories(idpHome.resolve("static"));
+            Files.createDirectories(jettyBase.resolve("tmp"));
         } catch (final IOException e) {
             log.error("Create Directory failed", e);
             throw new ModuleException(e);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list