diff options
Diffstat (limited to 'stage1/resolver.scala')
-rw-r--r-- | stage1/resolver.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stage1/resolver.scala b/stage1/resolver.scala index 98955cb..8dde321 100644 --- a/stage1/resolver.scala +++ b/stage1/resolver.scala @@ -87,7 +87,7 @@ abstract class Dependency{ } private object classLoaderCache extends Cache[URLClassLoader] - def classLoader: URLClassLoader = classLoaderCache{ + def classLoader( classLoaderCache: ClassLoaderCache ): URLClassLoader = { if( concurrencyEnabled ){ // trigger concurrent building / downloading dependencies exportClasspathConcurrently @@ -112,7 +112,10 @@ abstract class Dependency{ if(cacheDependencyClassLoader){ new URLClassLoader( buildClassPath, - ClassLoaderCache.get( cachedClassPath ) + classLoaderCache.permanent.get( + cachedClassPath.string, + cbt.URLClassLoader( classpath, ClassLoader.getSystemClassLoader ) + ) ) } else { new URLClassLoader( |