Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.74 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can I change the directory into which SBT puts test resources?
  2. lazy val prepare = task{
  3.   None
  4. } dependsOn (compile, copyResources) describedAs ("Compiles main, copies main resources. Use for the before-action in the idea-sbt-plugin")
  5.  
  6. lazy val testPrepare = task{
  7.   None
  8. } dependsOn (testCompile, copyResources, copyTestResources) describedAs ("Compiles main and test, copies all resources. Use for the before-action in the idea-sbt-plugin")
  9.        
  10. override lazy val testCompile = testCompileAction dependsOn task {
  11.   import sbt.Process._
  12.   "cp -R src/test/resources/* target/scala_2.8.1/test-classes" ! log
  13.   None
  14. }
  15.        
  16. override lazy val testCompile = testCompileAction dependsOn copyTestResources
  17. override def testResourcesOutputPath = testCompilePath