mirror of https://github.com/sbt/sbt.git
Use system classloader when finding root classloader
This commit is contained in:
parent
7109bc9637
commit
7b7716953f
|
|
@ -38,7 +38,9 @@ object ClasspathUtilities
|
||||||
val p = loader.getParent
|
val p = loader.getParent
|
||||||
if(p eq null) loader else parent(p)
|
if(p eq null) loader else parent(p)
|
||||||
}
|
}
|
||||||
parent(getClass.getClassLoader)
|
val systemLoader = ClassLoader.getSystemClassLoader
|
||||||
|
if (systemLoader ne null) parent(systemLoader)
|
||||||
|
else parent(getClass.getClassLoader)
|
||||||
}
|
}
|
||||||
|
|
||||||
final val AppClassPath = "app.class.path"
|
final val AppClassPath = "app.class.path"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue