如果我的包/模块名称有空格,如何在 ant build.xml 的 CVS 任务中指定包/模块?
在我的项目的 build.xml 中,为了检查代码,我编写了以下内容:
<cvs cvsRoot=":pserver:[email protected]:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/>
以下内容显示在控制台中:
[cvs] cvs server: cannot find module `My' - ignored
[cvs] cvs server: cannot find module `Test' - ignored
[cvs] cvs server: cannot find module `Project' - ignored
[cvs] cvs checkout: No CVSROOT specified! Please use the `-d' option
[cvs] cvs [checkout aborted]: or set the CVSROOT environment variable.
如果我使用模块名称中没有任何空格的项目执行相同的检出,则代码校验成功。
Ant 版本是 1.7.x。
In build.xml for my project, for checking out the codes, I am writing the following:
<cvs cvsRoot=":pserver:[email protected]:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/>
The following is getting displayed in the console:
[cvs] cvs server: cannot find module `My' - ignored
[cvs] cvs server: cannot find module `Test' - ignored
[cvs] cvs server: cannot find module `Project' - ignored
[cvs] cvs checkout: No CVSROOT specified! Please use the `-d' option
[cvs] cvs [checkout aborted]: or set the CVSROOT environment variable.
If I perform the same checkout using a project which doesn't have any spaces in module name, the code checkout is successful.
The Ant version is 1.7.x.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将 CVS 任务标签修改为:
现在可以了!
I got right by modifying the CVS task tag to:
Now it works!