PageRenderTime 35ms CodeModel.GetById 23ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/project/build/Scalate.scala

http://github.com/scalate/scalate
Scala | 74 lines | 52 code | 21 blank | 1 comment | 0 complexity | 7d7966af59faca1d391f6f1055fdb5aa MD5 | raw file
 1import sbt._
 2
 3class ScalateParentProject(info: ProjectInfo) extends ParentProject(info) {
 4
 5  val mavenLocal = "Local Maven Repository" at "file://" + Path.userHome + "/.m2/repository"
 6
 7  // Projects
 8  lazy val scalate_util = project("scalate-util", "scalate-util", new ScalateUtil(_))
 9  lazy val scalate_core = project("scalate-core", "scalate-core", new ScalateCore(_), scalate_util)
10  lazy val scalate_test = project("scalate-test", "scalate-test", new ScalateTest(_), scalate_core)
11  lazy val scalate_page = project("scalate-page", "scalate-page", new ScalatePage(_), scalate_core, scalate_test)
12  lazy val scalate_wikitext = project("scalate-wikitext", "scalate-wikitext", new ScalateWikiText(_), scalate_core, scalate_test)
13  lazy val scalate_camel = project("scalate-camel", "scalate-camel", new ScalateCamel(_), scalate_core, scalate_test)
14  lazy val scalate_jsp_converter = project("scalate-jsp-converter", "scalate-jsp-converter", new ScalateJspConverter(_), scalate_core)
15  lazy val scalate_war = project("scalate-war", "scalate-war", new ScalateWar(_), scalate_core, scalate_test)
16  lazy val scalate_sample = project("scalate-sample", "scalate-sample", new ScalateSample(_), scalate_core, scalate_test, scalate_war)
17  lazy val scalate_bookstore = project("scalate-bookstore", "scalate-bookstore", new ScalateBookstore(_), scalate_core, scalate_test, scalate_war)
18  lazy val scalate_pegdown = project("scalate-pegdown", "scalate-pegdown", new ScalatePegdown(_), scalate_core, scalate_test)
19  lazy val scalate_less = project("scalate-less", "scalate-less", new ScalateLess(_), scalate_core, scalate_test)
20
21  class ScalateProject(info: ProjectInfo) extends DefaultProject(info) { 
22
23    override def testOptions = {
24      super.testOptions ++ 
25      Seq(TestArgument("-Dbasedir=" + ".".absolutePath))
26    }
27  }
28
29  class ScalateWebProject(info: ProjectInfo) extends DefaultWebProject(info) { 
30
31    override def testOptions = {
32      super.testOptions ++ 
33      Seq(TestArgument("-Dbasedir=" + ".".absolutePath))
34    }
35  }
36
37
38  class ScalateUtil(info: ProjectInfo) extends ScalateProject(info) {
39  }
40
41  class ScalateCore(info: ProjectInfo) extends ScalateProject(info) {
42  }
43
44  class ScalateTest(info: ProjectInfo) extends ScalateProject(info) {
45  }
46
47  class ScalatePage(info: ProjectInfo) extends ScalateProject(info) {
48  }
49
50  class ScalateWikiText(info: ProjectInfo) extends ScalateProject(info) {
51  }
52
53  class ScalateCamel(info: ProjectInfo) extends ScalateProject(info) {
54  }
55
56  class ScalateJspConverter(info: ProjectInfo) extends ScalateProject(info) {
57  }
58
59  class ScalateWar(info: ProjectInfo) extends ScalateWebProject(info) {
60  }
61
62  class ScalateSample(info: ProjectInfo) extends ScalateWebProject(info) {
63  }
64
65  class ScalateBookstore(info: ProjectInfo) extends ScalateWebProject(info) {
66  }
67
68  class ScalatePegdown(info: ProjectInfo) extends ScalateWebProject(info) {
69  }
70
71  class ScalateLess(info: ProjectInfo) extends ScalateWebProject(info) {
72  }
73
74}