Archive for Apache Ant

Ant error reporting

Having spent hours (literally) on a minor ant build file improvement – enabling an instrumentation task conditionally through a system property – I just wonder if I had taken this long, had ant more strict syntax checking. I admit that

<target name="emma" if="${emma.enabled}">

should not be expected to work if the correct form is

<target name="emma" if="emma.enabled">

But instead of just assuming the conditional to be false in the first case, a warning message would have been nice. Of course I should have read the docs – “the name of the property that must be set in order for this target to execute” – but I’m reluctant to do that when I’m convinced it always worked this way before.

Leave a Comment