2016-10-06 7 views

答えて

2

project.in(file("."))

はい、それは(それが実際に "ショート" ではありません、それは呼ばれていますinfix notation)のために "短い" SBTでproject in file(".")です。

すべてinメソッドを使用すると、構成および定義の束を作成しているプロジェクトのベースディレクトリ設定されているん:

/** Sets the base directory for this project.*/ 
def in(dir: File): Project = copy(base = dir) 

をそして最後に、それは内部の(あなたのための新しいプロジェクト定義を作成して終わりますProject.unresolved法):

new ProjectDef[ProjectReference](
    id, base, aggregate, dependencies, delegates, 
    settings, configurations, auto, plugins, autoPlugins) with Project 

そしてその上に、あなたが設定し、依存関係の束を適用します。