From 6c27b990ffb2dcbba856a35f78a50bec0079aa30 Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 2 Dec 2009 18:06:33 +0000 Subject: help_text.properties moved from work dir to library git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@480 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/knowcenter/wag/egov/egiz') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java b/src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java index 8dea466..4ae64a2 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java @@ -141,6 +141,11 @@ public class SettingsReader implements Serializable * pdf-as internal properties resource path */ private static final String PDF_AS_PROP_RESOURCE = "/config/pdf-as.properties"; + + /** + * internal help file + */ + private static final String HELP_TEXT_PROP_RESOURCE = "/config/help_text.properties"; // /** // * The web application path @@ -206,7 +211,7 @@ public class SettingsReader implements Serializable * The name of the help text configuration file. The definition syntax is the * java property config syntax. */ - public static final String HELP_TEXT_FILE_DEFAULT_NAME = "help_text.properties"; +// public static final String HELP_TEXT_FILE_DEFAULT_NAME = "help_text.properties"; /** * The java properties from the settings file. @@ -280,8 +285,9 @@ public class SettingsReader implements Serializable properties_.load(SettingsReader.class.getResourceAsStream(PDF_AS_PROP_RESOURCE)); Properties help_prop = new Properties(); - FileInputStream hfs = new FileInputStream(cfg_path + HELP_TEXT_FILE_DEFAULT_NAME); - help_prop.load(hfs); +// FileInputStream hfs = new FileInputStream(cfg_path + HELP_TEXT_FILE_DEFAULT_NAME); +// help_prop.load(hfs); + help_prop.load(SettingsReader.class.getResourceAsStream(HELP_TEXT_PROP_RESOURCE)); // load properties from current package! // properties_.load(getClass().getResourceAsStream(settingsFile_)); -- cgit v1.2.3