DANCE WITH JAVA

开发出高质量的系统

常用链接

统计

积分与排名

好友之家

最新评论

ant教程(八) ant实例(cvs)

ant的例子很好找,各种开源框架都会带有一个build.xml仔细看看,会有很大收获
另外一个经常会用到的,但是在开远框架的build.xml一般没有的是cvs

如果使用的是远程的cvs,可以这样使用
<?xml version="1.0" encoding="utf-8"?>
<project>
     <property name="cvsroot" value=":pserver:wang:@192.168.1.2:/cvsroot"/>
     <property name="basedir" value="/tmp/testant/"/>
     <property name="cvs.password" value="wang"/>
     <property name="cvs.passfile" value="${basedir}/ant.cvspass"/>
     <target name="initpass">
             <cvspass cvsroot="${cvsroot}" password="${cvs.password}" passfile="${cvs.passfile}"/>
     </target>
     <target name="checkout" depends="initpass">
             <cvs cvsroot="${cvsroot}" command="checkout" cvsrsh="ssh" package="myproject" dest="${basedir}" 
              passfile="${cvs.passfile}"/>
      </target>
</project>

 

posted on 2006-09-20 00:22 dreamstone 阅读(2274) 评论(1)  编辑  收藏 所属分类: 利器

评论

# re: ant教程(八) ant实例(cvs)[未登录] 2008-04-28 14:40 Alex

checkout:
[cvs] cvs passfile: D:\corp_proj\${cvs.passfile} ignored as it is not read
able
[cvs] cvs checkout: warning: unrecognized response `'"ssh"' 不是内部或外部
命令,也不是可运行的程序
[cvs] ' from cvs servercvs checkout: warning: unrecognized response `或批
处理文件。
[cvs] ' from cvs servercvs [checkout aborted]: end of file from server (co
nsult above messages if any)

我报这个错是什么原因啊?  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: