现在的位置: 首页 > 综合 > 正文

ant脚本自动打包杂记

2014年11月19日 ⁄ 综合 ⁄ 共 473字 ⁄ 字号 评论关闭

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目录下。

抱歉!评论已关闭.