ant中cvs checkout报错
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="checkout" name="1">
<target name="login">
<echo message="###### login to CVS ######"/>
<cvspass cvsroot=":pserver:cvsadmin@10.10.8.10:/test"password="123"/>
</target>
<target name="checkout" depends="login">
<cvs cvsRoot=":pserver:cvsadmin@10.10.8.10:/test" package="odd" dest="E:\temp\mytest"/>
</target>
</project>
为什么我运行ant后,提示
cvs checkout:Empty passwordused -try "cvs login" with a real password
cvs :authorization failed:server 10.10.8.10 refected access to /test for user cvsadmin
我的用户名和密码是正确的。库的名称也是对的。可为什么就提示密码不正确 增加:
<property name="cvs.passfile" value="${basedir}/ant.cvspass"/>
<target name="login">
<echo message="###### login to CVS ######"/>
<cvspass cvsroot=":pserver:cvsadmin@10.10.8.10:/test"password="123" passfile="${cvs.passfile}"/>
</target>
<target name="checkout" depends="login">
<cvs cvsRoot=":pserver:cvsadmin@10.10.8.10:/test" command="checkout"package="odd" dest="E:\temp\mytest"passfile="${cvs.passfile}"/>
</target>
建议:你将 cvsroot 、password和dest 等 写入 property 中,方便以后修改.
页:
[1]