diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-11 16:41:00 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-11 16:41:00 -0500 |
commit | 0fcc91ebcd289784811a10c5bc901af644d5fc12 (patch) | |
tree | c58ec83445d71be95aac944d78da322891e5c2a6 /stage2/BuildBuild.scala | |
parent | c7a5c5d7e23355ea14e8c095f750b47f308c032f (diff) | |
download | cbt-0fcc91ebcd289784811a10c5bc901af644d5fc12.tar.gz cbt-0fcc91ebcd289784811a10c5bc901af644d5fc12.tar.bz2 cbt-0fcc91ebcd289784811a10c5bc901af644d5fc12.zip |
Make GitDependency and DirectoryDependency simply return Build objects
Diffstat (limited to 'stage2/BuildBuild.scala')
-rw-r--r-- | stage2/BuildBuild.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index d778049..dead081 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -14,7 +14,7 @@ class plugins(implicit context: Context){ context.copy( workingDirectory = context.cbtHome / "plugins" / dir ) - ).dependency + ) final lazy val essentials = plugin( "essentials" ) final lazy val proguard = plugin( "proguard" ) final lazy val sbtLayout = plugin( "sbt_layout" ) @@ -66,9 +66,9 @@ trait BuildBuildWithoutEssentials extends BaseBuild{ // otherwise we'd have to recursively build all versions since // the beginning. Instead CBT always needs to build the pure Java // Launcher in the checkout with itself and then run it via reflection. - val dep = new GitDependency(base, hash, Some("nailgun_launcher")) - val ctx = managedContext.copy( cbtHome = dep.checkout ) - dep.classLoader + val build = GitDependency(base, hash, Some("nailgun_launcher")).asInstanceOf[BaseBuild] + val ctx = managedContext.copy( cbtHome = build.projectDirectory.getParentFile ) + build.classLoader .loadClass( "cbt.NailgunLauncher" ) .getMethod( "getBuild", classOf[AnyRef] ) .invoke( null, ctx ) |