ServletContext context = contextEvent.getServletContext();\r
WebXmlSettings webxmlSettings = new WebXmlSettings(context);\r
\r
- // 0.7.0 web.properties in the deployed war folder\r
- String webProps = context.getRealPath("/WEB-INF/web.properties");\r
+ // gitblit.properties file located within the webapp\r
+ String webProps = context.getRealPath("/WEB-INF/gitblit.properties");\r
if (!StringUtils.isEmpty(webProps)) {\r
File overrideFile = new File(webProps);\r
- if (overrideFile.exists()) {\r
- webxmlSettings.applyOverrides(overrideFile);\r
- }\r
+ webxmlSettings.applyOverrides(overrideFile);\r
}\r
\r
-\r
- // 0.8.0 gitblit.properties file located outside the deployed war\r
+ // gitblit.properties file located outside the deployed war\r
// folder lie, for example, on RedHat OpenShift.\r
File overrideFile = getFileOrFolder("gitblit.properties");\r
if (!overrideFile.getPath().equals("gitblit.properties")) {\r
webxmlSettings.applyOverrides(overrideFile);\r
}\r
+ \r
configureContext(webxmlSettings, true);\r
\r
// Copy the included scripts to the configured groovy folder\r