diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:07:57 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:34:48 -0500 |
commit | 92b26f394460aa609f9d073ea044776e7d8c46fb (patch) | |
tree | cb6deceebc0313e2186e686680b51187ddfd0095 /stage2/BuildBuild.scala | |
parent | dfde369b30bcde1c60add172e0e91caeb51e541b (diff) | |
download | cbt-92b26f394460aa609f9d073ea044776e7d8c46fb.tar.gz cbt-92b26f394460aa609f9d073ea044776e7d8c46fb.tar.bz2 cbt-92b26f394460aa609f9d073ea044776e7d8c46fb.zip |
implicitly pass classloader, might make code easier
and prepares for allowing `run` and `runFlat` at
Dependency instead of Build level
Diffstat (limited to 'stage2/BuildBuild.scala')
-rw-r--r-- | stage2/BuildBuild.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index 994ac2e..474599a 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -57,14 +57,14 @@ trait BuildBuildWithoutEssentials extends BaseBuild{ // 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(classLoaderCache) + dep.classLoader .loadClass( "cbt.NailgunLauncher" ) .getMethod( "getBuild", classOf[AnyRef] ) .invoke( null, ctx ) } }.getOrElse{ try{ - classLoader(context.classLoaderCache) + classLoader .loadClass(lib.buildClassName) .getConstructors.head .newInstance(managedContext) |