aboutsummaryrefslogtreecommitdiff
path: root/stage2
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-06-14 21:13:02 -0400
committerGitHub <noreply@github.com>2016-06-14 21:13:02 -0400
commite02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b (patch)
treec754e73fa8ac7f7363dd5a66521e17ef1dbab03d /stage2
parentb69826c7bc44573f01366ef472a59def6e4f1fc5 (diff)
parent59c9e1e4bfc45f843f89da22e0190d19403b4dc6 (diff)
downloadcbt-e02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b.tar.gz
cbt-e02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b.tar.bz2
cbt-e02df8c99b9c8fa5dac3ab724a90cb138ba7dc0b.zip
Merge pull request #144 from katrinsharp/master
scalajs cross project support as plugin
Diffstat (limited to 'stage2')
-rw-r--r--stage2/BasicBuild.scala12
1 files changed, 5 insertions, 7 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala
index ee552a5..978f604 100644
--- a/stage2/BasicBuild.scala
+++ b/stage2/BasicBuild.scala
@@ -39,9 +39,10 @@ class BasicBuild(val context: Context) extends DependencyImplementation with Bui
def defaultScalaVersion: String = constants.scalaVersion
final def scalaVersion = context.scalaVersion getOrElse defaultScalaVersion
- final def scalaMajorVersion: String = lib.scalaMajorVersion(scalaVersion)
+ final def scalaMajorVersion: String = lib.libMajorVersion(scalaVersion)
def crossScalaVersions: Seq[String] = Seq(scalaVersion, "2.10.6")
final def crossScalaVersionsArray: Array[String] = crossScalaVersions.to
+ def projectName = "default"
// TODO: this should probably provide a nice error message if class has constructor signature
def copy(context: Context): BuildInterface = lib.copy(this.getClass, context).asInstanceOf[BuildInterface]
@@ -79,17 +80,14 @@ class BasicBuild(val context: Context) extends DependencyImplementation with Bui
/** Absolute path names for all individual files found in sources directly or contained in directories. */
final def sourceFiles: Seq[File] = lib.sourceFiles(sources)
- protected def assertSourceDirectories(): Unit = {
+ protected def logEmptySourceDirectories(): Unit = {
val nonExisting =
sources
.filterNot( _.exists )
.diff( Seq(defaultSourceDirectory) )
- assert(
- nonExisting.isEmpty,
- "Some sources do not exist: \n"++nonExisting.mkString("\n")
- )
+ if(!nonExisting.isEmpty) logger.stage2("Some sources do not exist: \n"++nonExisting.mkString("\n"))
}
- assertSourceDirectories()
+ logEmptySourceDirectories()
def Resolver( urls: URL* ) = MavenResolver( context.cbtHasChanged, context.paths.mavenCache, urls: _* )