我是 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 7 上的 C:\Users\Foo
。
关于sbt - Windows操作系统中SBT构建工具中的global.sbt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27874857/