用Ant实现SVN代码更新,部署

要实现ant可以从svn服务器上检出代码要使用svnant jar文件。
从网上下载svnant 包,下载地址:
http://subclipse.tigris.org/files/documents/906/49042/svnant-1.3.1.zip
将下载好的svnant 解压将 lib目录下的所有jar复制到ant主目录中的 lib目录下。

编写build.xml
要svn task任务可以使用要在build.xml中添加

  1. <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />   

完整的xml文件如下:[......]

阅读全文