SBT:'sources' 任务 returns 无

SBT: 'sources' task returns nothing

为什么在从 sbt 控制台调用时命令 "sources" returns 什么都没有?

[info] Loading project definition from E:\Git\sbt-coveralls\project
[info] Set current project to sbt-coveralls (in build file:/E:/Git/sbt-coveralls/)
> sources
[success] Total time: 0 s, completed Jul 13, 2015 10:17:33 PM

要查看设置的 return 值,您需要使用 show:

> show sources
[info] ArrayBuffer(/Users/dnw/Desktop/t-2015-07-13.1202/Hi.scala)
[success] Total time: 0 s, completed 13-Jul-2015 12:02:52