You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Duy Dinh <dd...@jcpenney.com> on 2008/01/22 18:25:10 UTC

Error when trying to run Ant (with Ivy-Ant task) within MyEclipse

This is the first time I use Ivy.  I followed all the instructions from
the website, but I still got the following error message when trying to
run Ant (with Ivy-Ant task) within MyEclipse.

 

BUILD FAILED

C:\Documents and Settings\ddinh1\workspace\Money\build.xml:18: Problem:
failed to create task or type antlib:org.apache.ivy.ant:retrieve

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.

 

This appears to be an antlib declaration. 

Action: Check that the implementing library exists in one of:

        -C:\Program Files\MyEclipse
6.0\eclipse\plugins\org.apache.ant_1.7.0.v200706080842\lib

        -C:\Documents and Settings\ddinh1\.ant\lib

        -a directory added on the command line with the -lib argument

 

 

NOTE:  I ran it successfully from command prompt.

 

 

 

Thank you very much for your help!

 

Duy Dinh

 


AW: Error when trying to run Ant (with Ivy-Ant task) within MyEclipse

Posted by Ja...@rzf.fin-nrw.de.
MyEclipse (as every Eclipse) uses its own Ant bundle (/plugins/org.apache.ant.*)
Therefore adds to "normal" Ant/lib doesnt help.

Xaviers hint simulates the "-lib" option on command line.


Jan 

> -----Ursprüngliche Nachricht-----
> Von: Xavier Hanin [mailto:xavier.hanin@gmail.com] 
> Gesendet: Mittwoch, 23. Januar 2008 12:28
> An: ivy-user@ant.apache.org
> Betreff: Re: Error when trying to run Ant (with Ivy-Ant task) 
> within MyEclipse
> 
> You need to add ivy.jar to your Ant classpath in eclipse (Window >
> Preferences > Ant > Runtime).
> 
>  Xavier
> 
> On Jan 22, 2008 6:25 PM, Duy Dinh <dd...@jcpenney.com> wrote:
> 
> >  This is the first time I use Ivy.  I followed all the 
> instructions from
> > the website, but I still got the following error message 
> when trying to run
> > Ant (with Ivy-Ant task) within MyEclipse.
> >
> >
> >
> > BUILD FAILED
> >
> > C:\Documents and 
> Settings\ddinh1\workspace\Money\build.xml:18: Problem:
> > failed to create task or type antlib:org.apache.ivy.ant:retrieve
> >
> > 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.
> >
> >
> >
> > This appears to be an antlib declaration.
> >
> > Action: Check that the implementing library exists in one of:
> >
> >         -C:\Program Files\MyEclipse
> > 6.0\eclipse\plugins\org.apache.ant_1.7.0.v200706080842\lib
> >
> >         -C:\Documents and Settings\ddinh1\.ant\lib
> >
> >         -a directory added on the command line with the 
> -lib argument
> >
> >
> >
> >
> >
> > *NOTE:*  I ran it successfully from command prompt.
> >
> >
> >
> >
> >
> >
> >
> > Thank you very much for your help!
> >
> >
> >
> > Duy Dinh
> >
> >
> >
> > The information transmitted is intended only for the person 
> or entity to
> > which it is addressed and may contain confidential and/or privileged
> > material.  If the reader of this message is not the 
> intended recipient,
> > you are hereby notified that your access is unauthorized, 
> and any review,
> > dissemination, distribution or copying of this message including any
> > attachments is strictly prohibited.   If you are not the intended
> > recipient, please contact the sender and delete the 
> material from any
> > computer.
> >
> >
> 
> 
> -- 
> Xavier Hanin - Independent Java Consultant
> http://xhab.blogspot.com/
> http://ant.apache.org/ivy/
> http://www.xoocode.org/
> 

Re: Error when trying to run Ant (with Ivy-Ant task) within MyEclipse

Posted by Xavier Hanin <xa...@gmail.com>.
You need to add ivy.jar to your Ant classpath in eclipse (Window >
Preferences > Ant > Runtime).

 Xavier

On Jan 22, 2008 6:25 PM, Duy Dinh <dd...@jcpenney.com> wrote:

>  This is the first time I use Ivy.  I followed all the instructions from
> the website, but I still got the following error message when trying to run
> Ant (with Ivy-Ant task) within MyEclipse.
>
>
>
> BUILD FAILED
>
> C:\Documents and Settings\ddinh1\workspace\Money\build.xml:18: Problem:
> failed to create task or type antlib:org.apache.ivy.ant:retrieve
>
> 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.
>
>
>
> This appears to be an antlib declaration.
>
> Action: Check that the implementing library exists in one of:
>
>         -C:\Program Files\MyEclipse
> 6.0\eclipse\plugins\org.apache.ant_1.7.0.v200706080842\lib
>
>         -C:\Documents and Settings\ddinh1\.ant\lib
>
>         -a directory added on the command line with the -lib argument
>
>
>
>
>
> *NOTE:*  I ran it successfully from command prompt.
>
>
>
>
>
>
>
> Thank you very much for your help!
>
>
>
> Duy Dinh
>
>
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material.  If the reader of this message is not the intended recipient,
> you are hereby notified that your access is unauthorized, and any review,
> dissemination, distribution or copying of this message including any
> attachments is strictly prohibited.   If you are not the intended
> recipient, please contact the sender and delete the material from any
> computer.
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Re: Error when trying to run Ant (with Ivy-Ant task) within MyEclipse

Posted by Samit <sa...@gmail.com>.

Hi,

I also had the same problem wiht my eclipse.................

Solution is:

1. make sure that u have copied ant-contrib.jar in ant/../lib folder ,
2. And In build.xml u must write 
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />


If u have donw with these..........adn still getting error..........

Go to Eclipse, Windows-----Preferences---Ant--runtime-----Under Class Path
tab...check the Ant home entreis........If path is differ....cklick on Ant
home buton on rite side and set the ant which you are using (mite be other
than Eclipse Ant)..........

This will def rsolve ur issue.....

Thanks
Samit Katiyar


Duy Dinh wrote:
> 
> This is the first time I use Ivy.  I followed all the instructions from
> the website, but I still got the following error message when trying to
> run Ant (with Ivy-Ant task) within MyEclipse.
> 
>  
> 
> BUILD FAILED
> 
> C:\Documents and Settings\ddinh1\workspace\Money\build.xml:18: Problem:
> failed to create task or type antlib:org.apache.ivy.ant:retrieve
> 
> 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.
> 
>  
> 
> This appears to be an antlib declaration. 
> 
> Action: Check that the implementing library exists in one of:
> 
>         -C:\Program Files\MyEclipse
> 6.0\eclipse\plugins\org.apache.ant_1.7.0.v200706080842\lib
> 
>         -C:\Documents and Settings\ddinh1\.ant\lib
> 
>         -a directory added on the command line with the -lib argument
> 
>  
> 
>  
> 
> NOTE:  I ran it successfully from command prompt.
> 
>  
> 
>  
> 
>  
> 
> Thank you very much for your help!
> 
>  
> 
> Duy Dinh
> 
>  
> 
> 
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material.  If the reader of this message is not the intended recipient,
> you are hereby notified that your access is unauthorized, and any review,
> dissemination, distribution or copying of this message including any
> attachments is strictly prohibited.   If you are not the intended
> recipient, please contact the sender and delete the material from any
> computer.
> 
> 


-----
Samit :confused:
-- 
View this message in context: http://www.nabble.com/Error-when-trying-to-run-Ant-%28with-Ivy-Ant-task%29-within-MyEclipse-tp15025290p17794647.html
Sent from the ivy-user mailing list archive at Nabble.com.