diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-07 11:07:09 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-15 01:24:46 -0400 |
commit | ad2094b06eb7e313b3655ae0cae98b50787177d3 (patch) | |
tree | 1ea8a3a23991554d248a67c2f89f352609580720 /plugins/sbt_layout | |
parent | b37e339c41483c15bf14f84be60c8470fd429d77 (diff) | |
download | cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.tar.gz cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.tar.bz2 cbt-ad2094b06eb7e313b3655ae0cae98b50787177d3.zip |
separate sbt layout and scalatest plugins and create a more general plugin architecture
Diffstat (limited to 'plugins/sbt_layout')
-rw-r--r-- | plugins/sbt_layout/SbtLayout.scala | 10 | ||||
-rw-r--r-- | plugins/sbt_layout/build/build.scala | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/sbt_layout/SbtLayout.scala b/plugins/sbt_layout/SbtLayout.scala new file mode 100644 index 0000000..5cd7a03 --- /dev/null +++ b/plugins/sbt_layout/SbtLayout.scala @@ -0,0 +1,10 @@ +package cbt + +trait SbtLayoutTest extends BaseBuild{ + override def sources = Seq(projectDirectory ++ "/src/test/scala") + override def compileTarget = super.compileTarget.getParentFile ++ "/test-classes" +} + +trait SbtLayoutMain extends BaseBuild{ + override def sources = Seq( projectDirectory ++ "/src/main/scala" ) +} diff --git a/plugins/sbt_layout/build/build.scala b/plugins/sbt_layout/build/build.scala new file mode 100644 index 0000000..80ff3ba --- /dev/null +++ b/plugins/sbt_layout/build/build.scala @@ -0,0 +1,2 @@ +import cbt._ +class Build(val context: Context) extends Plugin |