Hi, Thanks for your replies. But the issue still exists. I have indeed added my jar file to the ant-lib folder and made the reference in the script. But still it says: taskdef class "ignore"/> cannot be found
pls help!! -Pooja Sharma, Jaikumar wrote: > > It works for me like the following : > > <path id="ant-contrib.classpath"> > <pathelement location="yourpath/ant-contrib-1.0b3.jar" /> > </path> > > <taskdef resource="net/sf/antcontrib/antlib.xml" > classpathref="ant-contrib.classpath" /> > > Hope this helps! > > > -----Original Message----- > From: Pooja Ganapathi [mailto:[email protected]] > Sent: Friday, May 14, 2010 4:15 PM > To: [email protected] > Subject: Ant For task > > > Hi, > > I am trying to use the for task in my ant script but not able to. > initially i thought having --> <taskdef resource= > "net/sf/antcontrib/antcontrib.properties"/> is well enough for using it. > But it doesn't looked os. > > After search, i tried to use the below format <taskdef > resource="net/sf/antcontrib/antlib.xml"/>. > > However, it is giving me the below error message: > > "taskdef class "ignore"/> cannot be found" > > I am not sure how to play with this. I also tried the below one: > > taskdef > name="for" > classname="net.sf.antcontrib.logic.ForTask" > onerror="ignore"> > <classpath> > <pathelement location=".../ant-contrib.jar"/> > </classpath> > </taskdef> > > But again, it failed to recognise the onerror atrribute. > > Could some one please tell me the correct way to use the for task in > ant? > > Thanks, > Pooja > -- > View this message in context: > http://old.nabble.com/Ant-For-task-tp28557776p28557776.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > DISCLAIMER: > Unless indicated otherwise, the information contained in this message is > privileged and confidential, and is intended only for the use of the > addressee(s) named above and others who have been specifically > authorized to receive it. If you are not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > message and/or attachments is strictly prohibited. The company accepts > no liability for any damage caused by any virus transmitted by this > email. Furthermore, the company does not warrant a proper and complete > transmission of this information, nor does it accept liability for any > delays. If you have received this message in error, please contact the > sender and delete the message. Thank you. > > > DISCLAIMER: > Unless indicated otherwise, the information contained in this message is > privileged and confidential, and is intended only for the use of the > addressee(s) named above and others who have been specifically authorized > to receive it. If you are not the intended recipient, you are hereby > notified that any dissemination, distribution or copying of this message > and/or attachments is strictly prohibited. The company accepts no > liability for any damage caused by any virus transmitted by this email. > Furthermore, the company does not warrant a proper and complete > transmission of this information, nor does it accept liability for any > delays. If you have received this message in error, please contact the > sender and delete the message. Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Ant-For-task-tp28557776p28620343.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
