James Moger
2012-01-06 e36d4de3a9dc55359f3b54dbf06adc8209d1028c
src/com/gitblit/GitBlit.java
@@ -1788,6 +1788,21 @@
            webxmlSettings.applyOverrides(overrideFile);
         }
         configureContext(webxmlSettings, true);
         // Copy the included scripts to the configured groovy folder
         File localScripts = getFileOrFolder(Keys.groovy.scriptsFolder, "groovy");
         if (!localScripts.exists()) {
            File includedScripts = new File(context.getRealPath("/WEB-INF/groovy"));
            if (!includedScripts.equals(localScripts)) {
               try {
                  com.gitblit.utils.FileUtils.copy(localScripts, includedScripts.listFiles());
               } catch (IOException e) {
                  logger.error(MessageFormat.format(
                        "Failed to copy included Groovy scripts from {0} to {1}",
                        includedScripts, localScripts));
               }
            }
         }
      }
      serverStatus.servletContainer = servletContext.getServerInfo();