使用ant向CVS添加目录
如何使用 Ant 将新目录添加到我的 CVS 存储库中?从我读过的所有内容来看,我似乎必须 cd 到父目录并调用 cvs 命令。我如何在 Ant 中做到这一点?我见过在 Ant 中调用 to cd 的方法;这是最好的方法吗?
例如我正在尝试做的事情: 假设我有一个带有目录“A”、“B”和“C”的模块 Test_Module。在每个目录下,都有“Jan”、“June”、“Sept”目录,我想在 Test_Module-> 下创建一个“Alpha”目录。 C->九月。
因此,我在本地系统上创建了一个“Alpha”目录并从 Root 运行 cvs add 命令,但出现以下错误: cvs 添加:在目录 .: cvs [add aborted]:这里没有版本;首先执行“cvs checkout”
当我使用 Ant 或从命令行运行此命令时,我收到相同的错误。
现在,如果我 cd 到 Test_Module/C/Sept 目录并运行“cvs add Alpha”,它会创建目录,一切都很好。那么,我该如何在 Ant 中做同样的事情呢?是否有任何我可以使用的 ant-contrib 任务,甚至是我缺少的内置 ant 任务?
提前致谢!!
How do I add a new directory into my CVS repository using Ant? From all that I've read, it appears that I have to cd to the parent directory and call the cvs command. How do I do that in Ant? I've seen approaches where an to cd is called in Ant; is that the best approach?
Eg of what I am trying to do:
Let's say I have a module Test_Module with directories "A", "B" and "C". Under each of these directories, there are directories for "Jan", "June", "Sept" and I want to create a "Alpha" directory under Test_Module-> C -> Sept.
So, I create a "Alpha" directory on my local system and run the cvs add command from Root and I get the following errror:
cvs add: in directory .:
cvs [add aborted]: there is no version here; do 'cvs checkout' first
I get the same error when I run this using Ant or from command line.
Now, if I cd to the Test_Module/C/Sept directory and run "cvs add Alpha" it creates the directory and everything is fine. So, how do I do the same in Ant? Are there any ant-contrib tasks that are out there that I could possibly use or even a built-in ant task that I am missing?
Thanks in Advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您查看过Ant CVS 任务吗?
我已经有一段时间没有使用 CVS 了,但是由于可以使用 Ant 管理 Subversion 存储库,所以我想 CVS 应该没有问题
did you look at the Ant CVS task?
I haven't used CVS for a while but since it's possible to manage a Subversion repository with Ant, I guess there should be no problem to do it for CVS