Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

SVN ANT for eclipse

来源: pyzheng 分享至:
SVN ANT for eclipse

http://www.blogjava.net/wilesun/archive/2008/03/17/186693.html
在ANT中使用SVN
1.到http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=1731&expandFolder=1731&folderID=1926直接下载
svnant-1.1.0-RC2.zip
2.准备Build.xml
<!-- svn的classpath-->
<path id="ant.svn.classpath">
  <fileset dir="${basedir}/lib">
   <include name="*.jar" />
  </fileset>
</path>
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
  <classpath refid="ant.svn.classpath" />
</taskdef>

3.加入你的下载配置就可以了


http://home.phpchina.com/blog-2638-186846.html

svnant-1.3.1.zip 解压
放到D:\Program Files\MyEclipse 10\Common\plugins\org.apache.ant_1.8.2.v20110505-1300\lib

subversion提交时出现malformed network data错误
http://betterman-zeng.blogbus.com/logs/6547101.html



========================================================================
<property name="ant.home" value="D:/ant165" />
<property name="svn.UserName" value="pandy.pan" />
<property name="svn.UserPassword" value="l*ls#IO:P" />
<property name="svn.URL" value="svn://10.11.60.253/ODEC/CITYU-RGMS/source/cityu-webapp" />
<!-- SVN ANT -->
<path id="ant.svn.classpath">
<fileset dir="${ant.home}/lib">
<include name="*.jar" />
</fileset>
</path>
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask">
<classpath refid="ant.svn.classpath" />
</taskdef>
<target name="checkout" description="checkout full web project">
<svn username="${svn.UserName}" password="${svn.UserPassword}">
<checkout url="${svn.URL}" revision="HEAD" destPath="dest" />
</svn>
</target>

Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史