You can achieve this for example by adding something like the following to your build.sbt
:
unmanagedSourceDirectories in Compile <++= baseDirectory { base =>
Seq(
base / "some/subdir/src"
)
}
For details of the relation between unmanaged-sources
, unmanaged-source-directories
and scala-source
you might want to check the documentation. After exporting the eclipse project from sbt, you should find a corresponding entry in your .classpath
file, like:
<classpathentry output="target/scala-2.9.1/classes" path="some/subdir/src" kind="src"></classpathentry>