0

我们在巡航控制方面有一些项目,大致是这样设置的:

巡航控制

<ant antfile="build.xml" dir="A" target="compile" inheritAll="false" />

A中,编译目标调用B中的 jar 目标,作为其编译的一部分 (在“编译”中)

<ant antfile="${B.dir}/build.xml" inheritAll="false" target="jar" />
<javac ... >

所以B有一个jar任务。A从B构建 jar ,然后在它的编译中使用它。

我遇到的问题是巡航控制似乎混淆了路径。虽然A编译任务直接从 ant 工作,但从 Cruisecontrol 运行时,它似乎试图根据B jar 设置中的路径找到它自己的内部库。

为了让它在 ant 中工作,我必须使用 inheritAll="false" 标志从A调用B,但是这和使用 fork 调用 javac 似乎都不能解决问题。

可能相关 - 我们正在运行 ant @ 1.7 版,cc 服务器是 ant 1.6.5 版,我无法轻松更新。

有什么提示吗?

4

1 回答 1

1

In your CruiseControl configuration you can specify the anthome or antscript attributes so that you use your version of Ant, so you should be able to get the same behavior from CC that you get at the command-line.

于 2009-03-16T17:00:31.040 回答