aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-02 18:06:33 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-02 18:06:33 +0000
commit6c27b990ffb2dcbba856a35f78a50bec0079aa30 (patch)
tree2654754eed44be76417d8832bc289b33b672bad1 /src/main/java
parenta95aa06b1fbbe48ce4d2ca02db18e5617631e29b (diff)
downloadpdf-as-3-6c27b990ffb2dcbba856a35f78a50bec0079aa30.tar.gz
pdf-as-3-6c27b990ffb2dcbba856a35f78a50bec0079aa30.tar.bz2
pdf-as-3-6c27b990ffb2dcbba856a35f78a50bec0079aa30.zip
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
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java12
1 files changed, 9 insertions, 3 deletions
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_));