3
我學習寫一些更高級的SBT建設的文件,我碰到sbt-proguard的代碼來:「<< =」在sbt設置中做什麼?
binaryDeps <<= compile in Compile map { _.relations.allBinaryDeps.toSeq },
inputs <<= fullClasspath in Runtime map { _.files },
libraries <<= (binaryDeps, inputs) map { (deps, in) => deps filterNot in.toSet },
outputs <<= artifactPath map { Seq(_) },
- 我想知道什麼呢< < =意味着在這種情況下?
- 如何理解地圖函數在第3行?
在更新的版本(sbt> = 0.13)中,我們會以更簡單的方式編寫它:'libraries:= binaryDeps.value filterNot inputs.value.toSet'。 – sjrd 2015-02-07 09:44:09
請參見[如何使用<< =使用定義的值來定義sbt任務:=引用另一個設置值.value?](http://stackoverflow.com/questions/20642575/how-is-an-sbt-task使用-不同-從酮-defined-定義與 - 該-REF)。 – 2015-02-09 05:51:41