Java 尝试通过Runtime.exec()运行cvs时出错

Java 尝试通过Runtime.exec()运行cvs时出错,java,windows-7,cvs,runtime.exec,wincvs,Java,Windows 7,Cvs,Runtime.exec,Wincvs,我通常使用WinCVS,但我正试图编写一个Java应用程序来自动化一些构建/部署任务。如果从命令行运行cvs-nupdate,则会得到查询结果。如果我通过Runtime.exec()运行它,我会得到以下错误。有什么想法吗?在Windows 7计算机上运行 cvs update: warning: unrecognized response 'error: Failed to create SSH connection server' from cvs server cvs update: war

我通常使用WinCVS,但我正试图编写一个Java应用程序来自动化一些构建/部署任务。如果从命令行运行
cvs-nupdate
,则会得到查询结果。如果我通过Runtime.exec()运行它,我会得到以下错误。有什么想法吗?在Windows 7计算机上运行

cvs update: warning: unrecognized response 'error: Failed to create SSH connection server' from cvs server
cvs update: warning: unrecognized response 'error: Error (0x80090006): Invalid Signature.' from cvs server
cvs [update aborted]: end of file from server (consult above messages if any)

我的建议是,您应该使用
maven
ant
来处理这类事情。当然,作为一种学习练习,你自己滚动可能很有趣,但在专业环境中,99%的时间最好坚持使用标准构建工具。我同意biziclop关于“标准工具”的观点。但是,请显示生成错误的代码。