1

I try to add another source directory to my play project with

def temporarySources = Def.setting { (baseDirectory in Compile).value / "temporary" }

and then add to settings

(unmanagedSources in Compile) += temporarySources.value

after running sbt test, sbt complains , that the directory doesn't exist, although i'm sure it is there (i can cd to the directory)

4

1 回答 1

3

I guess you need unmanagedSourceDirectories and not unmanagedSources, try the following setting:

unmanagedSourceDirectories in Compile += (baseDirectory.value / "temporary"),
unmanagedSourceDirectories in Test    += (baseDirectory.value / "temporary")
于 2013-09-27T12:02:12.770 回答