tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: TAMAYA-43: Tried fix for resolution on Linux box.
Date Sun, 11 Jan 2015 10:37:52 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master f97e294c3 -> a33f54ffa


TAMAYA-43: Tried fix for resolution on Linux box.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/a33f54ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/a33f54ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/a33f54ff

Branch: refs/heads/master
Commit: a33f54ffa3b801dcd4b1fd52127c03cd16390f92
Parents: f97e294
Author: anatole <anatole@apache.org>
Authored: Sun Jan 11 11:37:46 2015 +0100
Committer: anatole <anatole@apache.org>
Committed: Sun Jan 11 11:37:46 2015 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/tamaya/resolver/MyTestPropertySource.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/a33f54ff/modules/resolver/src/test/java/org/apache/tamaya/resolver/MyTestPropertySource.java
----------------------------------------------------------------------
diff --git a/modules/resolver/src/test/java/org/apache/tamaya/resolver/MyTestPropertySource.java
b/modules/resolver/src/test/java/org/apache/tamaya/resolver/MyTestPropertySource.java
index 00d92f8..2f8381c 100644
--- a/modules/resolver/src/test/java/org/apache/tamaya/resolver/MyTestPropertySource.java
+++ b/modules/resolver/src/test/java/org/apache/tamaya/resolver/MyTestPropertySource.java
@@ -52,8 +52,8 @@ public class MyTestPropertySource implements PropertySource{
     }
 
     private String getFileRefAsString() {
-        URL res = getClass().getResource("/TestResource2.txt");
         try {
+            URL res = getClass().getClassLoader().getResource("TestResource2.txt");
             return new File(res.toURI()).getAbsolutePath();
         } catch (URISyntaxException e) {
             return "Failed to evaluate file: TestResource2.txt";


Mime
View raw message