aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-06 21:49:29 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-06 21:49:29 -0500
commit0fba8a53498cdd588ec626551c2fa0ca6f1e2531 (patch)
tree2cddc81bb2811ad10160d0b6e540be91467401db /stage2/BasicBuild.scala
parent5f1fb226244e57efac90a48cc24c9648ef0c55a4 (diff)
downloadcbt-0fba8a53498cdd588ec626551c2fa0ca6f1e2531.tar.gz
cbt-0fba8a53498cdd588ec626551c2fa0ca6f1e2531.tar.bz2
cbt-0fba8a53498cdd588ec626551c2fa0ca6f1e2531.zip
minor refactorings
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r--stage2/BasicBuild.scala13
1 files changed, 5 insertions, 8 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index f102d5c..22462f7 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -106,14 +106,11 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge
throw new RuntimeException( "no source files found" )
} else sourceFiles
- protected def logEmptySourceDirectories(): Unit = {
- val nonExisting =
- sources
- .filterNot( _.exists )
- .diff( Seq(defaultSourceDirectory) )
- if(!nonExisting.isEmpty) logger.stage2("Some sources do not exist: \n"++nonExisting.mkString("\n"))
+ {
+ val nonExisting = sources.filterNot( _.exists ).diff( Seq(defaultSourceDirectory) )
+ if( nonExisting.nonEmpty )
+ logger.stage2("Some sources do not exist: \n"++nonExisting.mkString("\n"))
}
- logEmptySourceDirectories()
def Resolver( urls: URL* ) = MavenResolver( context.cbtLastModified, context.paths.mavenCache, urls: _* )
@@ -129,7 +126,7 @@ trait BaseBuild extends BuildInterface with DependencyImplementation with Trigge
def triggerLoopFiles: Seq[File] = sources ++ transitiveDependencies.collect{ case b: TriggerLoop => b.triggerLoopFiles }.flatten
- def localJars : Seq[File] =
+ def localJars: Seq[File] =
Seq(projectDirectory ++ "/lib")
.filter(_.exists)
.flatMap(_.listFiles)