如何将修订号获取到 Luntbuild 中的 Ant 属性中? [英] How can I get the revision number into an Ant property in Luntbuild?

查看:28
本文介绍了如何将修订号获取到 Luntbuild 中的 Ant 属性中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确信这一定是可能的:

I'm sure this must be possible:

当我的构建在 Luntbuild 中运行时,我希望将修订号(来自 Subversion)放入一个可从 Ant 访问的属性中.必须有一个 OGNL 表达式,我可以将其添加到 Ant 构建器的配置页面上的构建属性"框中.

I want to have the revision number (from Subversion) put into a property that is accessible from Ant when my build runs in Luntbuild. There must be an OGNL expression that I can add to the Build Properties box on the configuration page for my Ant builder.

有人知道是什么吗?

推荐答案

您可能会发现使用 SvnAntsvntask Ant 任务直接在您的 Ant 脚本中获取 Subversion 修订号可能是一个有效的替代方案.

You might find using either the SvnAnt or svntask Ant tasks to get the Subversion revision number directly in your Ant script might be a valid alternative.

这篇关于如何将修订号获取到 Luntbuild 中的 Ant 属性中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆