利用蚂蚁的build.xml在CVS任务的嵌套元素模块 [英] Using the nested element module in cvs task in ant build.xml

查看:261
本文介绍了利用蚂蚁的build.xml在CVS任务的嵌套元素模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用蚂蚁的build.xml连接到CVS的问题。
我想通了,原因是CVS任务包​​属性为空格:

I have problems connecting to CVS using ant build.xml. I figured out the reason was whitespaces in package attribute of CVS task as:

<cvs cvsRoot=":pserver:user@xx.xxx.xxx.xx:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/>

我从蚂蚁网站上了解到( http://ant.apache.org/manual /Tasks/cvs.html ),我们可以使用嵌套&LT;&模块GT;元素如果要指定名称中带有空格的模块。这指定了一个封装/模块上下工夫,不像包属性,使用该属性可以的名称中包含空格指定的模块。

I learned from the ant website( http://ant.apache.org/manual/Tasks/cvs.html ) that we may Use a nested <module> element if you want to specify a module with spaces in its name. This specifies a package/module to work on, unlike the package attribute, modules specified using this attribute can contain spaces in their name.

我尝试使用以下内容:

<cvs cvsRoot=":pserver:user@xx.xxx.xxx.xx:/CVSREPO_CCP_MIG" dest="${basedir}">
<module name="My Test Project"/>
</cvs>

这再次抱怨:

build.xml:39: cvs doesn't support the nested "module" element.

我如何使用模块元素与CVS标签?

How can I use the module element with the CVS tag?

Ant的版本是1.7.x。

The Ant version is 1.7.x.

推荐答案

的建议通过上述评论,嵌套的模块元素可用于Ant的版本1.8 +。结果
但是,如果你在早期版本之一,您可以通过添加指定下CVS任务的封装属性为你的包/模块名称'&QUOT;'在属性值的任一端。结果
例如我们可以更换的包=我的测试项目的用的包=&[我的测试项目&QUOT;的这里。

As suggested by the comments above, the nested "module" element is available for Ant ver 1.8 +.
However, if you are on one of the earlier versions, you may specify your package/module name under package attribute of CVS task by adding '"' on the either end of the attribute value.
e.g. We can replace package="My Test Project" with package=""My Test Project"" in here.

这篇关于利用蚂蚁的build.xml在CVS任务的嵌套元素模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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