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 サーバーで実行できるようにしたいのですが、ANT_HOME/lib に配置したすべての jar に関係なく、このタスクを単純なコマンド ライン 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 の外で実行する方法はありますか? 助けてくれてどうもありがとう!アンソニー