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 閱讀(2289) 評論(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)

          我報這個錯是什么原因啊?  回復  更多評論   

          主站蜘蛛池模板: 屯昌县| 睢宁县| 乐安县| 锦州市| 德江县| 桓仁| 科技| 中宁县| 左贡县| 麻江县| 北海市| 五台县| 大港区| 宁强县| 宜春市| 辽阳县| 定西市| 缙云县| 台中市| 巢湖市| 西宁市| 凤城市| 兖州市| 镇安县| 晋中市| 冷水江市| 滦南县| 万年县| 洛南县| 循化| 汝阳县| 昭平县| 杂多县| 敦煌市| 布尔津县| 潞西市| 聂荣县| 宾阳县| 上杭县| 卢湾区| 商南县|