ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: IGNITE-1185 Locate configuration in class path.
Date Mon, 03 Aug 2015 07:08:54 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1185_2 [created] bd94f2714


IGNITE-1185 Locate configuration in class path.


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

Branch: refs/heads/ignite-1185_2
Commit: bd94f271420bb1aac7ce48f4ffd29d6491beaef2
Parents: 41c76a7
Author: sevdokimov <sergey.evdokimov@jetbrains.com>
Authored: Mon Aug 3 10:08:46 2015 +0300
Committer: sevdokimov <sergey.evdokimov@jetbrains.com>
Committed: Mon Aug 3 10:08:46 2015 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/internal/util/IgniteUtils.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bd94f271/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index 6bd361f..7c49802 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -3348,6 +3348,9 @@ public abstract class IgniteUtils {
         ClassLoader clsLdr = Thread.currentThread().getContextClassLoader();
 
         if (clsLdr != null) {
+            if (path.startsWith("classpath:"))
+                return clsLdr.getResource(path.substring("classpath:".length()));
+
             String locPath = (metaInf ? "META-INF/" : "") + path.replaceAll("\\\\", "/");
 
             return clsLdr.getResource(locPath);


Mime
View raw message