【问题标题】:Including SVN head revision number in the manifest.mf在 manifest.mf 中包含 SVN 头版本号
【发布时间】:2014-07-06 22:04:49
【问题描述】:

我正在使用 Ant 创建一个 WAR 文件。创建 WAR 时,它具有 MANIFEST.MF 文件,其中包含默认内容: 清单版本:1.0 Ant 版本:Apache Ant 1.8.4 创建者:1.7.0_07-b10(甲骨文公司)。

因此,当创建 WAR 时,它还应该具有 SVN 的 Build Revision Number/Head 修订号,并且 WAR 中的 MANIFEST.MF 应该如下所示: 清单版本:1.0 Ant 版本:Apache Ant 1.8.4 创建者:1.7.0_07-b10(甲骨文公司) 修订:#Head 修订号

【问题讨论】:

标签: ant build-process


【解决方案1】:

我建议使用buildnumber-maven-plugin。更多详情请看这篇文章:http://manifests.jcabi.com/versioning.html

另外,请参阅此帖子了解更多详细信息:http://www.yegor256.com/2014/07/03/how-to-read-manifest-mf.html

【讨论】:

    猜你喜欢
    • 2012-09-14
    • 2012-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-01
    • 2014-09-24
    • 1970-01-01
    相关资源
    最近更新 更多