Reputation: 45501
I have an ant script that does a headless build using the following ant code
<java jar="${equinoxjar}" fork="true" failonerror="true" logerror="true">
<arg line="-application org.eclipse.ant.core.antRunner -buildfile ${buildscript}" />
</java>
However it seems that even if my code has compilation errors, the returncode from the java task does not return an error. Thus my builds in teamcity are still shown as successful, even though there are compilation errors.
How do i fix this? The version of eclipse I am using to do the build is 3.6.2
Upvotes: 0
Views: 878
Reputation: 29139
Are you 100% certain that you are building with 3.6.2? There was a bug like this in 3.6.0, but it was fixed in 3.6.1 release.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321386
Upvotes: 1