【问题标题】:Where did the .target directory come from in my Play 2.1.1 project?我的 Play 2.1.1 项目中的 .target 目录来自哪里?
【发布时间】:2013-05-10 13:27:41
【问题描述】:

我刚刚开始使用 Scala/Play 2.1.1/Scala-IDE 堆栈,我有点困惑为什么我的 Play 2.1 项目目录包含目标目录和 .target 目录。 stock .gitignore 适当地忽略了目标目录,但不是 .target 目录。

.target 是从哪里来的,是什么意思,是否也应该包含在 .gitignore 中?

【问题讨论】:

    标签: playframework sbt playframework-2.1 scala-ide


    【解决方案1】:

    .target 是 SBT 为 Eclipse 输出配置的目录(当您使用 SBT eclipse 命令时)。

    根据this issue,他们选择这个名字(和SBTtarget目录不一样)以避免Eclipse和SBT编译到同一个目录。

    您可以将其包含在您的 .gitignore 中。

    【讨论】:

    • 谢谢。我怀疑它是这样的(虽然我已经做了好几次“玩日食”的事情,这是第一次出现 .target )。一些神秘的 .cache 目录也出现了。 Eclipse/Scala IDE/Play 2.1/SBT 之间有很多不一致的巫术,目前让我有点困惑。
    猜你喜欢
    • 2018-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多