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
私は何が欠けていますか?