diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/cfg/SettingsReader.java | 4 |
1 files changed, 4 insertions, 0 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 2da0d61..eabff4d 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 @@ -631,6 +631,10 @@ public class SettingsReader implements Serializable * @return
*/
public InputStream getInternalResource(String relativePath) {
+ // kill starting "." in resource path
+ if (relativePath != null && relativePath.length() > 0 && relativePath.startsWith(".")) {
+ relativePath = relativePath.substring(1);
+ }
String streamURI = INTERNAL_RESOURCE_PATH + relativePath;
logger_.trace("Trying to get stream from \"" + streamURI + "\".");
InputStream stream = this.getClass().getResourceAsStream(streamURI);
|