SBT入門ガイドを読んでいます。そのページはsourceDirectories例として設定を示しています。自分で試してみるbuild.sbtために、基本的な「hello world」プロジェクトのファイルに次のコードを追加しました。
sourceDirectories in Compile := Seq(file("other"))
( +=orの追加も++=機能しません。)
と にソース ファイルが<base-dir>/otherあります<base-dir>/src/main/scala。私は走っsbtてタイプしましたcompile。設定を無視しました:
> compile
[info] Compiling 1 Scala source to /Learning/Scala/proj1/target/scala-2.9.2/classes...
[error] /Learning/Scala/proj1/src/main/scala/hello.scala:7: not found: value Foo
[error] println(Foo.foo)
オブジェクトは、ソース ディレクトリFooの foo.scala で定義されています。other
私は何が欠けていますか?