The full format is the same as the basic format except that you
explicitly construct the Seq of settings. See the Project Settings
section of [1]. If you are asking because that wasn't clear, I can
provide a direct comparison.
What source directories do you want to override?
-Mark
[1] https://github.com/harrah/xsbt/wiki/FullConfiguration
> Br, Soren
>
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-build-t...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-build-tool?hl=en.
>
>
scalaSource in Compile <<= baseDirectory(_ / "src")
Substitute Compile with Test to set the test directory. For java
sources, the key is javaSource.
baseDirectory(_ / "src") expands to:
baseDirectory apply { (baseDir: File) =>
baseDir / "src"
}
-Mark
As a side note, I think it will be good style (for clarity) to write:
Project("root", file("."), settings = Defaults.defaultSettings ++ mySettings )
or the equivalent:
Project("root", file(".") ) settings( mySettings : _*)
where
def mySettings = Seq(
name := ...
)
I'll update the documentation on this when I get a chance.
> Cool, that works !
>
> But what if i have multiple source directories like src, src_model and
> src_view folders. The scalaSource in Compile <<=, doesn't seem to take
> a Seq ?
In that case, use unmanagedSourceDirectories directly. Its default definition concatenates scalaSource and javaSource, which are basically convenience settings. unmanagedSourceDirectories is the definitive setting to override.
-Mark