我在Eclipse中成功运行了Ant脚本。以下是其中的一部分:
<p2.composite.repository failOnExists="true">
<repository location="file:/${basedir}/compRepo" name="Repository description goes here" />
<add>
<repository location="http://url/Eclipse/repo/Galileo-3.5.1/" />
<repository location="http://another-url/Java/repo/4.0/" />
<repository location="${diag.location}" />
</add>
</p2.composite.repository>
但是我希望Hudson CI服务器能够运行它,但是,无论我放了多少个jar文件到ANT_HOME/lib中,我都无法在简单的命令行ant中运行这个任务…… 我被卡在了这个错误:
C:\workspaces\workspace\project\junit.script\createCompRepo.xml:10: Problem: failed to create task or type p2.composite.repository
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.
p2 Ant任务定义在哪里?有没有办法在Eclipse之外运行它们?
谢谢你的帮助!Anthony