【问题标题】:What is the recommended source control ignore pattern for Seam projects?Seam 项目推荐的源代码控制忽略模式是什么?
【发布时间】:2011-05-09 18:25:12
【问题描述】:

使用seam-gen 生成项目后,推荐的源代码管理忽略模式是什么?推荐的 .gitignore 文件(或 svn:ignore 或等效文件)应该是什么样的?

【问题讨论】:

    标签: svn git mercurial jboss seam


    【解决方案1】:

    我没有接缝的直接经验,但如果你start a project with seam-gen,那么你需要:

    • 在您的.gitignore 文件中排除将包含生成 内容的任何内容(如target directory,也包括*.sw files or test-output directories)
    • 不要排除与 IDE 相关的文件(如果它们不包含绝对路径),以便其他人直接获得他们可以在所述 IDE 中导入的项目,
    • 在 GitHub gitignore project 中回馈 gitignore 文件的内容:他们需要一个 seam/seam-gen 条目。

    【讨论】:

      【解决方案2】:

      我们在 Eclipse 下开发 Seam 项目。我们当前的svn:ignore 有以下条目:

      classes                      # all class files
      dist                         # contains generated war files for deployment
      .settings                    # some Eclipse settings
      exploded-archives            # war content generation during deploy (or explode)
      test-output                  # test results
      test-build                   # test compilation (ant target for Seam)
      test-report                  # test report generation for, e.g., Hudson
      temp-testng-customsuite.xml  # generated when running test cases under Eclipse
      

      此外,在我们的bootstrap 文件夹中,我们忽略了data 和tmp。

      【讨论】:

        【解决方案3】:

        根据上面的条目,我将建议合并到 gitignore 项目的条目中: https://github.com/github/gitignore/blob/master/SeamGen.gitignore

        【讨论】:

        • 对我不起作用,直到我没有删除文件中的 cmets。我认为您不能在与规则相同的行中添加评论...
        • 基于stackoverflow.com/a/8865858/422476我正在github上编辑你的文件
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-23
        • 2018-01-29
        • 1970-01-01
        • 2011-09-04
        • 2015-03-22
        • 2012-12-18
        相关资源
        最近更新 更多