aboutsummaryrefslogtreecommitdiff
path: root/stage1/Stage1.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-19 19:54:29 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 23:54:15 -0400
commit88854cfeb423a414296ffe2b04938d1b99fb4868 (patch)
tree7242559752472d7987fc6567e03a6ae1a72409f4 /stage1/Stage1.scala
parent9049773eab2dd7675a9b1cacd92bbe67825cf1ea (diff)
downloadcbt-88854cfeb423a414296ffe2b04938d1b99fb4868.tar.gz
cbt-88854cfeb423a414296ffe2b04938d1b99fb4868.tar.bz2
cbt-88854cfeb423a414296ffe2b04938d1b99fb4868.zip
io performance tweak: cache cbtLastModified
Diffstat (limited to 'stage1/Stage1.scala')
-rw-r--r--stage1/Stage1.scala11
1 files changed, 9 insertions, 2 deletions
diff --git a/stage1/Stage1.scala b/stage1/Stage1.scala
index c243cc0..d9bde7c 100644
--- a/stage1/Stage1.scala
+++ b/stage1/Stage1.scala
@@ -98,7 +98,8 @@ object Stage1{
val cls = this.getClass.getClassLoader.loadClass("cbt.NailgunLauncher")
- def cbtDependencies = new CbtDependencies(
+ def _cbtDependencies = new CbtDependencies(
+ (stage2Target++".last-success").lastModified,
mavenCache, nailgunTarget, stage1Target, stage2Target,
new File(buildStage1.compatibilityClasspath)
)
@@ -109,12 +110,18 @@ object Stage1{
val Some( stage2LastModified ) = compile(
buildStage1.stage1LastModified,
stage2sourceFiles, stage2Target, stage2StatusFile,
- cbtDependencies.stage2Dependency.dependencies,
+ _cbtDependencies.stage2Dependency.dependencies,
mavenCache,
Seq("-deprecation","-feature","-unchecked"),
zincVersion = constants.zincVersion, scalaVersion = constants.scalaVersion
)
+ def cbtDependencies = new CbtDependencies(
+ (stage2Target++".last-success").lastModified,
+ mavenCache, nailgunTarget, stage1Target, stage2Target,
+ new File(buildStage1.compatibilityClasspath)
+ )
+
logger.stage1(s"calling CbtDependency.classLoader")
assert(