1:通过eclipse进行ant编译时,由于涉及到svn下载代码的功能,需要在工程中加入ant的svn相关包,主要如下:
如果是通过ant命令执行,记得在ant_home目录的lib目录下加入以上jar。
参考:
http://blog.csdn.net/yanglidong/article/details/24973467
D:\Workspaces\MyEclipse10\gameupgrade\build.xml:32: Problem: failed to create task or type svn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
缺少svnant.jar五个svnant相关包,拷贝到工程依赖的lib目录下即可,如web工程拷贝到lib目录下。