You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Guy Catz <Gu...@waves.com> on 2008/06/25 11:07:30 UTC
help with For task (contrib)
hey guys.
I'm trying to use the For task with contrib, but when running, it says that it doesn't familiar with For !!!
<target name="testing">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<for list="a,b,c,d,e" param="letter">
<sequential>
<echo>Letter @{letter}</echo>
</sequential>
</for>
</target>
BUILD FAILED
/p4client/BuildMachine/Mac/Scripts/build-buildAllCC.xml:98: Problem: failed to create task or type "for"
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.
RE: help with For task (contrib)
Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
-----Original Message-----
From: Guy Catz [mailto:Guy.catz@waves.com]
Sent: Wednesday, June 25, 2008 11:07 AM
To: Ant Users List
Subject: help with For task (contrib)
/*
BUILD FAILED
/p4client/BuildMachine/Mac/Scripts/build-buildAllCC.xml:98: Problem:
failed to create task or type "for"
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.
*/
use antcontrib => 1.0b2
and write
<taskdef resource="net/sf/antcontrib/antlib.xml" /> if already on
path, f.e. in %ANT_HOME%/lib
or
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath path="path/to/antcontrib">
</taskdef
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org