global.sbt windows 操作系统中的 SBT 构建工具

global.sbt in SBT build tools in windows operating system

我是 SBT 构建工具的新手。我目前正在使用 windows 操作系统,但找不到 global.sbt 文件。我在哪里可以找到这个配置文件?

欢迎来到 sbt.

参考手册中有关于 Global Settings 的条目。

Settings that should be applied to all projects can go in ~/.sbt/0.13/global.sbt

它说 ~,不适用于 Windows。 sbt 使用 sys.props("user.home") 的值,与 Java.

中的 System.getProperty("user.home") 相同

关于如何 user.home is wrong on Windows 显然存在整个争议,但应该对应于 XP 上的 C:\Documents and Settings\Foo 和 Windows 上的 C:\Users\Foo 7.