`

Use ant checkout sourcecode from CVS/SVN

阅读更多

build.xml for CVS

 

<?xml version="1.0"?>
<project name="Example Remote Build for CVS" default="checkout" basedir=".">

	<property name="local_root" value="local_project_root"/>
	<property name="remote_cvsroot" value=":pserver:builder@server_ip:/cvsroot" />
	
    <target name="checkout"> 
  	    <cvspass cvsroot=":pserver:builder@server_ip:/cvsroot" password="builder"/> 
		<echo message="Checking out the required sources from CVS"/>		
        <cvs cvsroot="${remote_cvsroot}" quiet="true" command="checkout -P dir/project_name" dest="${local_root}" compression="true" />
    </target> 
	
</project>

 

 

 

 

build.xml for SVN

 

when we want to use ant checkout code from SVN, we need svnant tool which SVN supported.

For more information, please refer to the following links.

http://subclipse.tigris.org/svnant/svn.html

 

 

 

<?xml version="1.0"?>
<project name="Example Remote Build" default="checkout" basedir=".">

	<property name="ant_home_lib" value="...../apache-ant-1.9.3/lib"/>
	<property name="local_root" value="local_project_root/"/>
	
	<!-- the following jar is needed to SVN --> 
	<path id="svnant.classpath">
          <pathelement location="${ant_home_lib}/svnant.jar"/>
          <pathelement location="${ant_home_lib}/svnkit.jar"/>
          <pathelement location="${ant_home_lib}/svnClientAdapter.jar"/>
          <pathelement location="${ant_home_lib}/svnjavahl.jar"/>
          <pathelement location="${ant_home_lib}/*.jar"/>
    </path>
    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
	  
  <svnSetting
		svnkit="false"
		javahl="false"
		username="name" 
		password="pwd"
		id="svn.settings"/>
  
	<target name="checkout">  
		<svn refid="svn.settings" >  
			<checkout url="http://ip/repos/prject_name/trunk/" destPath="${local_root}" revision="HEAD"/>   
		</svn>   
	</target>  
	
</project>

 

 

 

----

 

 

分享到:
评论

相关推荐

    SVN安装和采用http或https访问

    svn的安装,使用http访问svn资源库,使用https访问svn资源库

    google checkout source code

    credit card payment processing

    SVN客户端使用简要教程

    1、 安装SVN-Client端程序。 下载地址:https://218.107.242.90:9374/svn/jnzl/tools/svn-client.msi 注:输入您的帐号和密码,即可进行登录下载。 2、 安装后,创建一个新目录,在新目录下点击右键,在弹出的菜单中...

    Linux下搭建SVN服务器遇到的问题及解决方法

    1、checkout时,提示:URL svn://IP/svntest doesn't exist…  奇怪,怎么会提示库不存在呢?肯定是哪里配置问题。后来尝试了半天,也在网上搜索了很久,终于发现问题所在。  如果你的svn库的路径为:/home/svn/...

    tornado_react:测试 PyReact + Tornado + Jinja2 + reactjs

    $ source bin/activate $ git clone https://github.com/slothyrulez/tornado_react.git $ svn checkout http://v8.googlecode.com/svn/trunk/ v8 $ svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8 $ cd...

    achartengin框架源码(svn更新)

    achartengin框架源码(svn更新) 更新日期:2012-06-14 svn checkout http://achartengine.googlecode.com/svn/trunk/ achartengine-read-only

    VS2008源代码管理软件组合-VisualSVN Server+TortoiseSVN+AnkhSvn

    VS2008源代码管理软件组合-VisualSVN Server+TortoiseSVN+AnkhSvn 在服务器上(192.168.1.106)上安装VisualSvn Server 新建repositories/PowervrSDK Users里添加用户密码,并绑定Groups 对repositories添加用户权限...

    svn资料大全 小白安装

    source .bash_profile echo $PATH 可以查看修改后效果 验证: ldd /usr/local/ssl/bin/openssl 3、安装sqllite tar -zvxf sqlite-autoconf-3071502.tar.gz cd sqlite-autoconf-3071502 ./configure --prefix=/usr...

    superuser android下的root权限管理工具

    svn下载方法: svn checkout http://superuser.googlecode.com/svn/trunk/ superuser-read-only

    Linux 下SVN https软件包

    CentOS 6.5下SVN checkout https://报错: svn: 方法 OPTIONS 失败于 “ https://192.168.0.202/svn/WorkingSvn: SSL handshake failed: SSL 错误:Key usage violation in certificate has been detected. ( ...

    ros by example源码

    《ROS by Example》中的源码 svn checkout http://ros-by-example.googlecode.com/svn/trunk/rbx_vol_1

    安卓java读取网页源码-AlfredLite:阿尔弗雷德莱特

    https://code.google.com/p/collimator/source/checkout or run the following command in terminal: svn checkout http://collimator.googlecode.com/svn/trunk/ collimator-read-only ##注意: 本应用构建

    《三国群英传一》Unity重制

    非常怀念经典游戏《三国群英传》系列,想着要是能在移动平台上可以玩那就太好了 打包下载: ... SVN版本控制: svn checkout svn://svn.code.sf.net/p/sangoqy01/code/trunk sangoqy01-code

    PHP源码加密扩展 ZoeeyGuard

    http://zoeeyguard.googlecode.com/files/zoeeyguard-latest.zip ...svn checkout http://zoeeyguard.googlecode.com/svn 支援包含以上上个链接的内容

    cocos2d box2d 例子crayonballdemo

    09年一位国人开发的cocos2d box2d例子代码,入手BOX2D很好的例子 附带box2d中英文手册 google code下载地址 ...命令行 svn checkout http://crayonballdemo.googlecode.com/svn/trunk/ crayonballdemo-read-only

    linux下的 svn命令

    例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co 2、往版本库中添加新的文件 svn add file 例如:svn add test.php(添加test.php) svn add *.php(添加当前目录下所有的php文件) 3、将改动的文件...

    svn菜单项说明

    01、SVN Checkout(SVN取出) 点击SVN Checkout,弹出检出提示框,在URL of repository输入框中输入服务器仓库地址,在Checkout directory输入框中输入本地工作拷贝的路径,点击确定,即可检出服务器上的配置库。 02、...

    svn1.6.2使用帮助文档,svn帮助文档,如何使用svn

    The /pathspecifies the target directory and the /urlspecifies the URL to checkout from. :import Opens the import dialog. The /pathspecifies the directory with the data to import. :update Updates ...

    linux下svn常用命令

    1、 将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout svn: // 192.168 . 1.1 / pro / domain 简写:svn co 2、 往版本库中添加新的文件 svn add file 例如:svn add test....

Global site tag (gtag.js) - Google Analytics