我在使用 ant build.xml 连接到 CVS 时遇到问题。我发现原因是 CVS 任务的包属性中的空格:
<cvs cvsRoot=":pserver:user@xx.xxx.xxx.xx:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/>
我从 ant 网站 ( http://ant.apache.org/manual/Tasks/cvs.html ) 了解到,如果您想指定名称中带有空格的模块,我们可以使用嵌套的 <module> 元素。这指定了要处理的包/模块,与包属性不同,使用此属性指定的模块可以在其名称中包含空格。
我尝试使用以下内容:
<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 标签的模块元素?
Ant 版本是 1.7.x。