aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-02-14 00:50:02 -0500
committerGitHub <noreply@github.com>2017-02-14 00:50:02 -0500
commit2a1bf81eccf6b91e0dcdd2d7a05664da2049f3a1 (patch)
tree1e31b9e979453000f53dae752b4a9787d70a151d /stage2/Lib.scala
parente0fb6ec75286c695b7e4c5ed9189714d40f9b672 (diff)
parent69b3380ad301b50e540ef784c5ada1f3560dffab (diff)
downloadcbt-2a1bf81eccf6b91e0dcdd2d7a05664da2049f3a1.tar.gz
cbt-2a1bf81eccf6b91e0dcdd2d7a05664da2049f3a1.tar.bz2
cbt-2a1bf81eccf6b91e0dcdd2d7a05664da2049f3a1.zip
Merge pull request #345 from cvogt/chris4
Chris4
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala13
1 files changed, 6 insertions, 7 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index fcf2642..2642ec9 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -31,7 +31,7 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger) with Scaffold{
if(buildDir.exists) findStartDir(buildDir) else directory
}
- val directory = context.projectDirectory
+ val directory = context.workingDirectory
context.logger.composition( context.logger.showInvocation("Build.loadRoot",directory) )
@@ -41,7 +41,7 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger) with Scaffold{
try{
if(useBasicBuild) {
- new BasicBuild( context.copy( projectDirectory = directory) )
+ new BasicBuild( context.copy( workingDirectory = directory ) )
} else if(
// essentials depends on eval, which has a build that depends on scalatest
// this means in these we can't depend on essentials
@@ -50,9 +50,9 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger) with Scaffold{
|| directory == (context.cbtHome ++ "/libraries/eval")
|| directory == (context.cbtHome ++ "/plugins/scalatest")
)
- new cbt.BasicBuild( context.copy( projectDirectory = start ) ) with BuildBuildWithoutEssentials
+ new cbt.BasicBuild( context.copy( workingDirectory = start ) ) with BuildBuildWithoutEssentials
else
- new cbt.BasicBuild( context.copy( projectDirectory = start ) ) with BuildBuild
+ new cbt.BasicBuild( context.copy( workingDirectory = start ) ) with BuildBuild
} catch {
case e:ClassNotFoundException if e.getMessage == "Build" =>
throw new Exception(s"no class Build found in " ++ start.string)
@@ -84,9 +84,8 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger) with Scaffold{
scalaMajorVersion: String,
version: String,
compileArgs: Seq[String],
- classLoaderCache: ClassLoaderCache,
mavenCache: File
- )(implicit transientCache: java.util.Map[AnyRef,AnyRef]): Option[File] = {
+ )(implicit transientCache: java.util.Map[AnyRef,AnyRef], classLoaderCache: ClassLoaderCache): Option[File] = {
if(sourceFiles.isEmpty){
None
} else {
@@ -101,7 +100,7 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger) with Scaffold{
runMain(
"scala.tools.nsc.ScalaDoc",
args,
- new ScalaDependencies(cbtLastModified,mavenCache,scalaVersion).classLoader(classLoaderCache)
+ new ScalaDependencies(cbtLastModified,mavenCache,scalaVersion).classLoader
)
}
lib.jarFile(