diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:21:01 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-14 00:34:48 -0500 |
commit | 6b7ccbe48f858e8c5d075672db85caa9dd44bd19 (patch) | |
tree | a78e67d2856a410a0fe9a71b5802034260a72703 /stage2/BasicBuild.scala | |
parent | e0c12a39e634bc88d0128992eabb16fa3b38b3b4 (diff) | |
download | cbt-6b7ccbe48f858e8c5d075672db85caa9dd44bd19.tar.gz cbt-6b7ccbe48f858e8c5d075672db85caa9dd44bd19.tar.bz2 cbt-6b7ccbe48f858e8c5d075672db85caa9dd44bd19.zip |
minor whitespace and name changes
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r-- | stage2/BasicBuild.scala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 4ac1903..5212270 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -125,9 +125,9 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge def resourceClasspath: ClassPath = { val resourcesDirectory = projectDirectory ++ "/resources" - ClassPath( if(resourcesDirectory.exists) Seq(resourcesDirectory) else Nil ) + ClassPath(Seq(resourcesDirectory).filter(_.exists)) } - def exportedClasspath : ClassPath = { + def exportedClasspath: ClassPath = { compile ClassPath(Seq(compileTarget).filter(_.exists)) ++ resourceClasspath } @@ -189,6 +189,7 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge Some(new lib.ReflectBuild( DirectoryDependency(projectDirectory++"/test").build ).callNullary(Some("run"))) + def t = test def rt = recursiveUnsafe(Some("test")) @@ -230,7 +231,7 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge ExitCode.Success } catch { case e: Throwable => println(e.getClass); throw e - } + } } ExitCode.Success } |