Friday, June 25, 2010

Some weird stuff about Ant

Currently I was using Ant with TestNG, please take note that when taskdef was missing in the code, the error is misleading.

<taskdef name="testng" classpathref="compilePath" classname="org.testng.TestNGAntTask" />

Below are the error generated:

Cause: The name is undefined.

Action: Check the spelling.

Action: Check that any custom tasks/types have been declared.

Action: Check that any <presetdef>/<macrodef> declarations have taken place.

No comments: