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 Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: