Consider the following test.xml script:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<taskdef resource="cpptasks.tasks" />
<taskdef resource="cpptasks.types" />
<compiler id="my.compiler" name="msvc" />
</project>
This produces the following error in the latest Ant 1.7.1 (Windows Vista SP1, cygwin bash environment)
test.xml:8: Not an actual task, but looks like one for documentation purposes
If I change <taskdef resource...> to use antlib.xml or declare compiler task directly like this
<typedef name="compiler" classname="net.sf.antcontrib.cpptasks.CompilerDef"/>
everything works just fine.
WBR,
Pavel.