summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-11-24 09:15:57 -0500
committerJames Moger <james.moger@gitblit.com>2014-11-24 09:15:57 -0500
commit0001f203daf794fd6a6d3bc49f6e474aa1459f74 (patch)
treea59ce2a455504e6f573f07bf3a4ae3ca7d305b69 /src
parente2c0c97867829f7db5a95f5e055bb6251cad6a65 (diff)
downloadgitblit-0001f203daf794fd6a6d3bc49f6e474aa1459f74.tar.gz
gitblit-0001f203daf794fd6a6d3bc49f6e474aa1459f74.zip
Extract WAR data resources if they do not exist in ${baseFolder}
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/servlet/GitblitContext.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/servlet/GitblitContext.java b/src/main/java/com/gitblit/servlet/GitblitContext.java
index 04a7d92e..fa0534db 100644
--- a/src/main/java/com/gitblit/servlet/GitblitContext.java
+++ b/src/main/java/com/gitblit/servlet/GitblitContext.java
@@ -364,12 +364,10 @@ public class GitblitContext extends GuiceServletContextListener {
baseFolder.mkdirs();
// try to extract the data folder resource to the baseFolder
- File localSettings = new File(baseFolder, "gitblit.properties");
- if (!localSettings.exists()) {
- extractResources(context, "/WEB-INF/data/", baseFolder);
- }
+ extractResources(context, "/WEB-INF/data/", baseFolder);
// delegate all config to baseFolder/gitblit.properties file
+ File localSettings = new File(baseFolder, "gitblit.properties");
FileSettings fileSettings = new FileSettings(localSettings.getAbsolutePath());
// merge the stored settings into the runtime settings