From 155bf78e3377910d29b2c912f58c0f496cb428e8 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 14 Apr 2011 19:44:47 -0400 Subject: [PATCH] Generate Keys class from gitblit.properties as part of build process. --- src/com/gitblit/StoredSettings.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/gitblit/StoredSettings.java b/src/com/gitblit/StoredSettings.java index d495ad8..1db87c0 100644 --- a/src/com/gitblit/StoredSettings.java +++ b/src/com/gitblit/StoredSettings.java @@ -27,7 +27,7 @@ List<String> keys = new ArrayList<String>(); Properties props = read(); for (Object o : props.keySet()) { - String key = o.toString().toLowerCase(); + String key = o.toString().toLowerCase(); if (key.startsWith(startingWith)) { keys.add(key); } @@ -114,11 +114,11 @@ } private static synchronized Properties read() { - File file = new File("gitblit.properties"); + File file = new File(Constants.PROPERTIES_FILE); if (file.exists() && (file.lastModified() > lastread)) { try { properties = new Properties(); - properties.load(new FileInputStream("gitblit.properties")); + properties.load(new FileInputStream(Constants.PROPERTIES_FILE)); lastread = file.lastModified(); } catch (FileNotFoundException f) { } catch (Throwable t) { -- Gitblit v1.9.1