installing SXR, formatted src on the website too
authorScott Morrison <scott@tqft.net>
Mon, 16 Jan 2012 12:31:39 -0800
changeset 438 722d7df397c3
parent 437 0732d772a1bc
child 439 a8f3fa024047
installing SXR, formatted src on the website too
build.sbt
src/main/website/src
--- a/build.sbt	Mon Jan 16 09:19:52 2012 -0800
+++ b/build.sbt	Mon Jan 16 12:31:39 2012 -0800
@@ -1,6 +1,6 @@
 name := "metaphor"
 
-organization := "net.metaphor"
+organization := "net.categoricaldata"
 
 version := "0.1.0"
 
@@ -38,21 +38,30 @@
 	"org.mortbay.jetty" % "jetty" % "6.1.22" % "test,dev"
 )
 
-// Dependencies for jetty:run
+// Dependencies for jetty
 libraryDependencies ++= Seq(
 	"org.mortbay.jetty" % "jetty" % "6.1.22" % "container"
 )
 
+// Sometimes it's useful to see debugging out from the typer (e.g. to resolve slow compiles)
 // scalacOptions += "-Ytyper-debug"
 
+// Filters for 'test' and 'dev:test'
 testOptions in Test := Seq(Tests.Filter(unitFilter))
 
 testOptions in DevTest := Seq(Tests.Filter(devFilter))
 
+// Setting up the metaphor webapp
 seq(webSettings :_*)
 
 port in container.Configuration := 8083
 
+// We use method dependent types, which for now are an experimental feature. (But are in trunk, probably landing in 2.10.)
 scalacOptions ++= Seq("-Xexperimental")
 
+// The Scala X-Ray plugin produces nicely formatted source code.
+addCompilerPlugin("org.scala-tools.sxr" % "sxr_2.9.0" % "0.2.7")
+
+scalacOptions <+= scalaSource in Compile map { "-P:sxr:base-directory:" + _.getAbsolutePath }
+
 publishTo := Some(Resolver.sftp("tqft.net Maven repository", "tqft.net", "tqft.net/releases") as ("scottmorrison", new java.io.File("/Users/scott/.ssh/id_rsa")))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/website/src	Mon Jan 16 12:31:39 2012 -0800
@@ -0,0 +1,1 @@
+../../../target/scala-2.9.1/classes.sxr/
\ No newline at end of file