aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/at/gv/egovernment
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-04-10 14:24:11 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-04-10 14:24:11 +0200
commitb3d3d3af963ed03704d73272aaf906e2eb109c0d (patch)
treeed2788300338b410e3a708c2d7d543d56960c7bd /common/src/main/java/at/gv/egovernment
parent42819b8b0bc4a99a0e9ff47ea9d4b3228bc0648f (diff)
downloadmoa-id-spss-b3d3d3af963ed03704d73272aaf906e2eb109c0d.tar.gz
moa-id-spss-b3d3d3af963ed03704d73272aaf906e2eb109c0d.tar.bz2
moa-id-spss-b3d3d3af963ed03704d73272aaf906e2eb109c0d.zip
change all file paths to relative or absolute paths
Diffstat (limited to 'common/src/main/java/at/gv/egovernment')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
index ff22c7313..a70d62e1e 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/FileUtils.java
@@ -133,7 +133,12 @@ public class FileUtils {
keyFile = new File(url);
if (!keyFile.isAbsolute()) {
keyFile = new File(root, url);
- newURL = keyFile.toURI().toString();
+
+ if (keyFile.toString().startsWith("file:"))
+ newURL = keyFile.toString();
+
+ else
+ newURL = keyFile.toURI().toString();
}
return newURL;