help with For task (contrib)

View: New views
2 Messages — Rating Filter:   Alert me  

help with For task (contrib)

by Guy Catz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

by Rebhan, Gilbert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----Original Message-----
From: Guy Catz [mailto:Guy.catz@...]
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@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price