2011-11-08 16 views
1

docsあたり、デフォルトの場所は src/main/resourcesです。SBT用のsbt-xjcプラグインのソースディレクトリをどのように変更しますか?

私のXSDはsrc/main/schemaにありますので、ソース設定を変更する必要があります。

私は次のように使用しているので:

overloaded method value in with alternatives: 
[error] (p: sbt.Reference,t: sbt.Scoped)sbt.ScopedTask[Seq[java.io.File]] <and> 
[error] (p: sbt.Reference,c: sbt.ConfigKey)sbt.ScopedTask[Seq[java.io.File]] <and> 
[error] (c: sbt.ConfigKey,t: sbt.Scoped)sbt.ScopedTask[Seq[java.io.File]] 
[error] cannot be applied to (sbt.TaskKey[Seq[java.io.File]], sbt.Configuration) 
[error] Error occurred in an application involving default arguments. 
[error]  sources in (xjc, Compile) <+= sourceDirectory/"main"/"schema" 
[error]    ^
[error] one error found 

答えて

1
sources in (Compile, xjc) <<= sourceDirectory map (_/"main"/"schema" ** "*.xsd" get) 

ドキュメントが更新されています。

sources in (xjc, Compile) <+= sourceDirectory/"main"/"schema" 

これがその結果。

関連する問題