aboutsummaryrefslogtreecommitdiff
path: root/stage1/Stage1Lib.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-04-29 01:38:55 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-04-29 01:42:18 -0400
commit0564c3aa3f17cb9e7e36d63f5432f1b0487250d6 (patch)
tree7c39ba0488a658e01c473bf6e7ce598359d58d27 /stage1/Stage1Lib.scala
parent48fb92b9421e6b7da104407fca0244ab2584eedd (diff)
downloadcbt-0564c3aa3f17cb9e7e36d63f5432f1b0487250d6.tar.gz
cbt-0564c3aa3f17cb9e7e36d63f5432f1b0487250d6.tar.bz2
cbt-0564c3aa3f17cb9e7e36d63f5432f1b0487250d6.zip
Do not cache classloaders for Builds. This wasn't supposed to happen yet
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r--stage1/Stage1Lib.scala20
1 files changed, 10 insertions, 10 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala
index 5fd19a8..7b09be2 100644
--- a/stage1/Stage1Lib.scala
+++ b/stage1/Stage1Lib.scala
@@ -343,19 +343,19 @@ ${files.sorted.mkString(" \\\n")}
if( dependencies.exists(_.needsUpdate) && cache.persistent.containsKey(cp) ){
cache.persistent.remove(cp)
}
- cache.persistent.get(
- cp,
- new MultiClassLoader(
- dependencies.map( classLoaderRecursion(_, latest, cache) )
- )
- )
+ def cl = new MultiClassLoader( dependencies.map( classLoaderRecursion(_, latest, cache) ) )
+ if(d.isInstanceOf[BuildInterface])
+ cl // Don't cache builds right now. We need to fix invalidation first.
+ else
+ cache.persistent.get( cp, cl )
}
}
val a = actual( dependency, latest )
- cache.persistent.get(
- a.classpath.string,
- new cbt.URLClassLoader( a.exportedClasspath, dependencyClassLoader(latest, cache) )
- )
+ def cl = new cbt.URLClassLoader( a.exportedClasspath, dependencyClassLoader(latest, cache) )
+ if(d.isInstanceOf[BuildInterface])
+ cl
+ else
+ cache.persistent.get( a.classpath.string, cl )
}
}