From e958dec0dbbcf7f7a28cd21641e76390fb3dba6a Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Mon, 7 Mar 2016 01:36:40 -0500 Subject: cleanup: whitespace changes, separated more things into their own files, use ++ for strings everywhere. Added ++ method to File and URL and use it in many places --- stage1/Stage1.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stage1/Stage1.scala') diff --git a/stage1/Stage1.scala b/stage1/Stage1.scala index 8db12cf..1aa3f09 100644 --- a/stage1/Stage1.scala +++ b/stage1/Stage1.scala @@ -63,12 +63,12 @@ abstract class Stage1Base{ val cwd = args(0) val src = stage2.listFiles.toVector.filter(_.isFile).filter(_.toString.endsWith(".scala")) - val changeIndicator = new File(stage2Target+"/cbt/Build.class") + val changeIndicator = stage2Target ++ "/cbt/Build.class" logger.stage1("before conditionally running zinc to recompile CBT") if( src.exists(newerThan(_, changeIndicator)) ) { val stage1Classpath = CbtDependency(logger).dependencyClasspath - logger.stage1("cbt.lib has changed. Recompiling with cp: "+stage1Classpath) + logger.stage1("cbt.lib has changed. Recompiling with cp: " ++ stage1Classpath.string) zinc( true, src, stage2Target, stage1Classpath )( zincVersion = "0.3.9", scalaVersion = constants.scalaVersion ) } logger.stage1(s"[$now] calling CbtDependency.classLoader") -- cgit v1.2.3