1
演示是在这里:http://www.ibm.com/developerworks/cn/opensource/os-ecant/詹金斯无法加载从资源AntTasks.properties定义
我想运行在詹金斯这个演示,但构建失败。
Started by user anonymous
Building on master in workspace C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1
Updating https://localhost/svn/test at revision '2014-10-30T11:06:06.839 +0800'
At revision 1
no change for https://localhost/svn/test since the previous build
[antPythonTry1] $ cmd.exe /C '"ant.bat && exit %%ERRORLEVEL%%"'
Buildfile: C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1\build.xml
[taskdef] Could not load definitions from resource pyAntTasks.properties. It could not be found.
compile:
BUILD FAILED
C:\Users\IBM_ADMIN\.jenkins\workspace\antPythonTry1\build.xml:37: Problem: failed to create task or type py-compile
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.
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
你错过含pyANT任务的罐子。这需要位于ANT可以在启动时捡起它的地方,通常是$ ANT_HOME/lib或$ HOME/.ant/lib – 2014-10-30 11:15:12
是的,你说得对,我已经添加了pyANT任务 – Stella 2014-12-10 06:23:24