Menu

#229 Proejct level <compiler> is not allowed taskdef'd from props

open
cpptasks (103)
5
2008-11-07
2008-11-07
Anonymous
No

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.

Discussion


Log in to post a comment.