ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Gies <>
Subject Re: Re setting a variable to a new value.
Date Mon, 26 May 2008 10:15:53 GMT
 > Problem: failed to create a task or type var
 > Cause: The name is undefined.
 > Action: Check the spelling.
 > Action: Check that any custion tasks/types have been declared.
 > Action: Check that any <presetdef>/macrodef> declarations have taken 
 > Please could someone make a suggestion.

You haven't imported ant-contrib's tasks in your project.

After making sure that ant-contrib's JAR is in your Ant's runtime 
classpath, add this to your root <project> tag:

<typdef resource="net/sf/antcontrib/antlib.xml" />

Calls to <var> should now work, as well as to any ant-contrib's task.


*Olivier Gies*

*Delivery Manager
Customs & Tax Software Engineering Center
Bull, Architect of an Open World ^TM
Phone: +86 (10) 65978001 - Ext 555 *

* <>*

*This e-mail contains material that is confidential for the sole use of
the intended recipient. Any review, reliance or distribution by others
or forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete all

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message