diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-07 01:36:40 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-07 01:36:40 -0500 |
commit | e958dec0dbbcf7f7a28cd21641e76390fb3dba6a (patch) | |
tree | ec0933e230b0c3f222fceb82b3eec177d56ea979 /stage2/Scaffold.scala | |
parent | f0dc760df8757caea1d83b15142a3d0704488636 (diff) | |
download | cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.gz cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.tar.bz2 cbt-e958dec0dbbcf7f7a28cd21641e76390fb3dba6a.zip |
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
Diffstat (limited to 'stage2/Scaffold.scala')
-rw-r--r-- | stage2/Scaffold.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stage2/Scaffold.scala b/stage2/Scaffold.scala index 00c8706..18b2cc3 100644 --- a/stage2/Scaffold.scala +++ b/stage2/Scaffold.scala @@ -49,7 +49,7 @@ class Build(context: Context) extends BuildBuild(context){ override def scalaVersion: String = "2.11.7" override def dependencies = super.dependencies ++ Seq( - BuildDependency( projectDirectory + "/../build-shared/") + BuildDependency( projectDirectory.parent ++ "/build-shared") // , "com.lihaoyi" %% "ammonite-ops" % "0.5.5" ) } @@ -85,7 +85,7 @@ class Build(context: Context) extends BuildBuild(context){ override def scalaVersion: String = "2.11.7" override def dependencies = super.dependencies ++ Seq( - BuildDependency( projectDirectory + "/../../build-shared/") + BuildDependency( projectDirectory.parent.parent ++ "/build-shared") // , "com.lihaoyi" %% "ammonite-ops" % "0.5.5" ) } @@ -132,9 +132,9 @@ trait BuildShared extends BasicBuild{ generatedFiles.map{ case ( fileName, code ) => scala.util.Try{ - write( Path(projectDirectory+"/"+fileName), code ) + write( Path( projectDirectory.string ++ "/" ++ fileName ), code ) import scala.Console._ - println( GREEN + "Created " + fileName + RESET ) + println( GREEN ++ "Created " ++ fileName ++ RESET ) } }.foreach( _.recover{ |