mirror of https://github.com/sbt/sbt.git
use class loader argument instead of loader of current class
This commit is contained in:
parent
c7165c9b79
commit
6cebff588b
|
|
@ -34,6 +34,6 @@ object Loaders
|
|||
{
|
||||
def loaders(loader: ClassLoader, accum: Stream[ClassLoader]): Stream[ClassLoader] =
|
||||
if(loader eq null) accum else loaders(loader.getParent, Stream.cons(loader, accum))
|
||||
loaders(getClass.getClassLoader.getParent, Stream.empty)
|
||||
loaders(loader, Stream.empty)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue