【问题标题】:Difference between SBT compile vs compileIncrementalSBT compile 与 compileIncremental 的区别
【发布时间】:2018-01-14 08:53:04
【问题描述】:

在 sbt 中 compile 和 compileIncremental 之间的概念区别是什么,或者在这两种情况下,事情在幕后的工作方式有何不同。

【问题讨论】:

标签: scala build compilation sbt


【解决方案1】:

Running 中所述,请使用compile 编译您的代码。

如果您对幕后发生的事情感到好奇,可以查看https://github.com/sbt/sbt/pull/1714Defaults.scala 中的相应部分。简而言之,compileIncremental 是一个内部任务,它被设置为插件可以在缓存发生之前拦截和操作字节码。

【讨论】:

    猜你喜欢
    • 2014-12-14
    • 2015-11-16
    • 1970-01-01
    • 1970-01-01
    • 2017-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-27
    相关资源
    最近更新 更多