ant使用教程-svn篇
来源:互联网 发布:淘宝网店授权书模板 编辑:程序博客网 时间:2024/06/05 04:06
ant的安装:http://blog.csdn.net/u014803081/article/details/72866666
ant的基础:http://blog.csdn.net/u014803081/article/details/72866756
ant的进阶:http://blog.csdn.net/u014803081/article/details/72869410 、
先下载第三方subclipse插件的jar:http://subclipse.tigris.org/files/documents/906/49042/svnant-1.3.1.zip
解压出来lib中会有一些jar,这些jar的地址就是path中路径。
导出方法有两种:svnkit和javahl,这个subclipse插件的jar有对应的,但是我试过用javahl一直不行,没办法,下面用的是svnkit方法。
检出代码:checkout会svn相关信息文件检出,export只是检出最新的文件
checkout代码
<path id="path.svnant"> <fileset dir="${basedir}/jar/lib"> <include name="**/*.jar"/> </fileset> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant"/> <target name="svn" > <svnSetting id="svnparams" username="ydh" password="123456" svnkit="true" javahl="false"/> <svn refid="svnparams"> <checkout url="svn://192.168.2.134/test0" destPath="svn/" /> </svn> </target>
export代码
<target name="svn2" > <svnSetting id="svnparams" username="ydh" password="123456" svnkit="true" javahl="false"/> <svn refid="svnparams"> <export srcUrl="svn://192.168.2.134/test0" destPath="svn/" force="true" /> </svn> </target>
导出方法svnkit和javahl参考:http://blog.sina.com.cn/s/blog_5920510a01018bvt.html
阅读全文
0 0
- ant使用教程-svn篇
- ant使用教程--基础篇
- ant使用教程-进阶篇
- ant使用教程-git篇
- ANT 基本使用教程
- ant使用教程
- ant使用教程
- ant使用教程
- ANT 基本使用教程
- ant使用教程
- Ant使用教程
- ant使用教程
- Ant简单使用教程
- Ant 使用教程
- [ant]非常简单的ant使用教程
- [ant]非常简单的ant使用教程
- [ant]非常简单的ant使用教程
- ANT介绍及使用教程
- hive distinct groupby等实现原理
- 组件
- WPF仿QQ聊天框表情文字混排实现
- 使用RecyclerView + ViewPager 的两个大坑!
- nodejs异步I/O和事件循环
- ant使用教程-svn篇
- AndroidManifest配置之uses-feature
- Flutter实战一Flutter聊天应用(二)
- HDU 2827 The Evaluation of Determinant 题解
- Python生成器
- python requests 高级用法 -- 包括SSL 证书错误的解决方案
- 功能强大的最新HTML5特效实例
- jni生成头文件和编译so文件
- 装饰设计模式1