From 64f78ef3af00b1aecb5f9f5ace827d86f8bfbc63 Mon Sep 17 00:00:00 2001 From: "Paolo G. Giarrusso" Date: Mon, 10 Feb 2014 05:22:01 +0100 Subject: [PATCH] Fix proposed setup for tests The given setup sets the path incorrectly for tests. Fix that - this setup is tested with SBT 0.12.4. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c1948e..22b1347 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,10 @@ resolvers += Resolver.url("Typesafe Releases", url("http://repo.typesafe.com/typ addCompilerPlugin("org.scala-sbt.sxr" %% "sxr" % "0.3.0") -scalacOptions <+= scalaSource in Compile map { "-P:sxr:base-directory:" + _.getAbsolutePath } +scalacOptions in (Compile, compile) <+= scalaSource in Compile map { "-P:sxr:base-directory:" + _.getAbsolutePath } + +//Optional, if you want to run SXR also on tests. +scalacOptions in (Test, compile) <+= scalaSource in Test map { "-P:sxr:base-directory:" + _.getAbsolutePath } ``` You will get a directory .sxr that mirrors the directory structure of your sources relative