aboutsummaryrefslogtreecommitdiff
path: root/stage2/ToolsTasks.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-15 01:37:53 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-15 03:47:49 -0500
commit7ee113962134e3c9c4659d6de9de3c7015174d3f (patch)
tree55f6158be8a53d3ad640f3cd038baeaf1a8f1f30 /stage2/ToolsTasks.scala
parent2c8257b0c119b38102aa0c3efecffc7fefc9d766 (diff)
downloadcbt-7ee113962134e3c9c4659d6de9de3c7015174d3f.tar.gz
cbt-7ee113962134e3c9c4659d6de9de3c7015174d3f.tar.bz2
cbt-7ee113962134e3c9c4659d6de9de3c7015174d3f.zip
add package to generated Main.scala to avoid classpath weirdnesses
caused by multiple root package Main classes from different subproject or test projects ending up on the same classpath
Diffstat (limited to 'stage2/ToolsTasks.scala')
-rw-r--r--stage2/ToolsTasks.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/stage2/ToolsTasks.scala b/stage2/ToolsTasks.scala
index 25156fb..943f096 100644
--- a/stage2/ToolsTasks.scala
+++ b/stage2/ToolsTasks.scala
@@ -15,8 +15,9 @@ class ToolsTasks(
implicit val logger: Logger = lib.logger
implicit val transientCache: java.util.Map[AnyRef,AnyRef] = new java.util.HashMap
private def Resolver( urls: URL* ) = MavenResolver(cbtLastModified,mavenCache,urls: _*)
- def createMain: Unit = lib.createMain( cwd )
- def createBuild: Unit = lib.createBuild( cwd )
+ val scaffold = new Scaffold(logger)
+ def createMain: Unit = scaffold.createMain( cwd )
+ def createBuild: Unit = scaffold.createBuild( cwd )
def gui = NailgunLauncher.main(Array(
"0.0",
(cbtHome / "tools" / "gui").getAbsolutePath,