我有一个 ant 脚本,它使用以下 ant 代码进行无头构建
<java jar="${equinoxjar}" fork="true" failonerror="true" logerror="true">
<arg line="-application org.eclipse.ant.core.antRunner -buildfile ${buildscript}" />
</java>
但是,即使我的代码有编译错误,java 任务的返回码似乎也不会返回错误。因此,即使存在编译错误,我在 teamcity 中的构建仍然显示为成功。
我该如何解决?我用来构建的 Eclipse 版本是 3.6.2