mirror of https://github.com/sbt/sbt.git
search java.library.path for default run/test loader
This commit is contained in:
parent
1d4d566d6b
commit
3ce7c0411d
|
|
@ -26,9 +26,11 @@ object ClasspathUtilities
|
|||
def toLoader(paths: Seq[File], parent: ClassLoader, resourceMap: Map[String,String], nativeTemp: File): ClassLoader =
|
||||
new URLClassLoader(Path.toURLs(paths), parent) with RawResources with NativeCopyLoader {
|
||||
override def resources = resourceMap
|
||||
override val config = new NativeCopyConfig(nativeTemp, paths, Nil)
|
||||
override val config = new NativeCopyConfig(nativeTemp, paths, javaLibraryPaths)
|
||||
}
|
||||
|
||||
def javaLibraryPaths: Seq[File] = IO.parseClasspath(System.getProperty("java.library.path"))
|
||||
|
||||
lazy val rootLoader =
|
||||
{
|
||||
def parent(loader: ClassLoader): ClassLoader =
|
||||
|
|
|
|||
Loading…
Reference in New Issue