initial project
authorAlexandre Bertails <bertails@w3.org>
Mon, 22 Aug 2011 10:24:55 -0400
changeset 0 b3929c9d6d60
child 1 f6c749ea5576
initial project
.hgignore
project/Build.scala
project/build/Project.scala
project/plugins/build.sbt
src/main/scala/Main.scala
src/test/scala/Test.scala
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,15 @@
+syntax: glob
+target/
+lib_managed/
+src_managed/
+lift_example/
+project/boot/
+.classpath
+.project
+.manager
+*~
+*.class
+*.log
+*\#
+src/main/scala.egp
+src/test/scala.egp
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/Build.scala	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,54 @@
+import sbt._
+import Keys._
+import java.net.URL
+
+object Dependencies {
+  val scalatest = "org.scalatest" % "scalatest_2.9.0" % "1.6.1" % "test"
+  val antiXML = "com.codecommit" %% "anti-xml" % "0.3-SNAPSHOT"
+  val dispatch = "net.databinder" %% "dispatch-http" % "0.8.4"
+  val unfiltered_filter = "net.databinder" %% "unfiltered-filter" % "0.4.1"
+  val unfiltered_jetty = "net.databinder" %% "unfiltered-jetty" % "0.4.1"
+}
+
+object BuildSettings {
+
+  val buildOrganization = "org.w3"
+  val buildVersion      = "0.1-SNAPSHOT"
+  val buildScalaVersion = "2.9.0-1"
+
+  val buildSettings = Defaults.defaultSettings ++ Seq (
+    organization := buildOrganization,
+    version      := buildVersion,
+    scalaVersion := buildScalaVersion,
+    parallelExecution in Test := true,
+    scalacOptions ++= Seq("-deprecation", "-unchecked")
+  )
+
+}
+
+object VirtualTrainerBuild extends Build {
+
+  import Dependencies._
+  import BuildSettings._
+
+  val pubrules_settings =
+    Seq(
+      resolvers += ScalaToolsReleases,
+      resolvers += ScalaToolsSnapshots,
+      libraryDependencies += scalatest,
+//      libraryDependencies += antiXML,
+      libraryDependencies += dispatch,
+      libraryDependencies += unfiltered_filter,
+      libraryDependencies += unfiltered_jetty
+    )
+
+  lazy val virtual_trainer = Project(
+    id = "virtualtrainer",
+    base = file("."),
+    settings = buildSettings ++ pubrules_settings ++ sbtassembly.Plugin.assemblySettings
+  )
+  
+
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/build/Project.scala	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,18 @@
+import sbt._
+
+class Project(info: ProjectInfo) extends DefaultProject(info) {
+
+  val scalatools = "scala-tools" at "http://scala-tools.org/repo-snapshots"
+  val smackRepo = "m2-repository-smack" at "http://maven.reucon.com/public"
+  val databinder_net = "databinder.net repository" at "http://databinder.net/repo"
+
+  val scalatest = "org.scalatest" % "scalatest" % "1.0.1-for-scala-2.8.0.Beta1-with-test-interfaces-0.3-SNAPSHOT" % "test->default"
+  val jodatime = "joda-time" % "joda-time" % "1.6"
+  val dispatch = "net.databinder" %% "dispatch-http" % "0.7.1"
+
+  val jtidy = "jtidy" % "jtidy" % "r938" from "http://downloads.sourceforge.net/project/jtidy/JTidy/r938/jtidy-r938.jar"
+  val saxon = "saxon" % "saxon" % "9.2.0.5j" from "http://www.bertails.org/jar/saxonhe9-2-0-5j.jar"
+
+  val scardf = "W3C" % "scardf-2.8_2.8.0.Beta1" % "0.2"
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/plugins/build.sbt	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,1 @@
+libraryDependencies <+= (sbtVersion) { sv => "com.eed3si9n" %% "sbt-assembly" % ("sbt" + sv + "_0.4") }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/scala/Main.scala	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,3 @@
+package org.w3.virtualtrainer
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/scala/Test.scala	Mon Aug 22 10:24:55 2011 -0400
@@ -0,0 +1,14 @@
+package org.w3.virtualtrainer
+
+import org.scalatest.FunSuite
+
+class Test extends FunSuite {
+
+  test("") {
+
+    assert(2 == 1+1)
+
+  }
+
+}
+