diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 00:13:25 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 02:43:39 -0400 |
commit | c220ef8d12e77ce6af6fafde3b388fc3e334b380 (patch) | |
tree | 47ff329caae3a38abe06e696c79acd198e2b0613 /plugins | |
parent | 8016298a6ae89ed1c8a45bde87411db4a2daf86f (diff) | |
download | cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.tar.gz cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.tar.bz2 cbt-c220ef8d12e77ce6af6fafde3b388fc3e334b380.zip |
scalatest plugin now does not need import anymore
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/scalatest/.gitignore | 1 | ||||
-rw-r--r-- | plugins/scalatest/ScalaTest.scala | 13 | ||||
-rw-r--r-- | plugins/scalatest/build/build.scala | 14 |
3 files changed, 0 insertions, 28 deletions
diff --git a/plugins/scalatest/.gitignore b/plugins/scalatest/.gitignore deleted file mode 100644 index 3cd6ea0..0000000 --- a/plugins/scalatest/.gitignore +++ /dev/null @@ -1 +0,0 @@ -src_generated/BuildInfo.scala diff --git a/plugins/scalatest/ScalaTest.scala b/plugins/scalatest/ScalaTest.scala deleted file mode 100644 index dc67183..0000000 --- a/plugins/scalatest/ScalaTest.scala +++ /dev/null @@ -1,13 +0,0 @@ -package cbt -import java.io.File -trait ScalaTest extends BaseBuild{ - override def dependencies = super.dependencies :+ libraries.scalatestRunner - override def run: ExitCode = { - classLoader.loadClass( "cbt.scalatest.Runner" ).method( - "run", classOf[Array[File]], classOf[ClassLoader] - ).invoke( null, exportedClasspath.files.toArray, classLoader ) - ExitCode.Success - } - ScalaDependency("org.scalatest","scalatest",cbt_plugins.scalaTest.BuildInfo.scalaTestVersion) - ) -} diff --git a/plugins/scalatest/build/build.scala b/plugins/scalatest/build/build.scala deleted file mode 100644 index 7e33ca2..0000000 --- a/plugins/scalatest/build/build.scala +++ /dev/null @@ -1,14 +0,0 @@ -import cbt._ - -class Build(val context: Context) extends GenerateBuildInfo{ - def scalaTestVersion = "2.2.6" - override def dependencies = ( - super.dependencies - :+ context.cbtDependency - ScalaDependency("org.scalatest","scalatest",scalaTestVersion) - ) - override def buildInfo = super.buildInfo.copy( - s"""def scalaTestVersion = "$scalaTestVersion"""", - Some("cbt_plugins.scalaTest") - ) -} |