Hi

The problem still exist when using Ivy 2.0 alpha 2 (12-Jul-2007):

----------------------------------------
ant clean
Buildfile: build.xml

clean:

BUILD FAILED
C:\Dummy\build.xml:3: Problem: failed to create task or type
antlib:org.apache.ivy:cleancache
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:\Install\apache-ant-1.7.0\lib
       -C:\Documents and Settings\hez\.ant\lib
       -a directory added on the command line with the -lib argument

----------------------------------------


Here is the build.xml,

<project xmlns:ivy="antlib:org.apache.ivy" name="dummy">
<target name="clean">
<ivy:cleancache />
</target>
</project>


and, I'm using J2SE 1.5.0_11, Ant 1.7.0 on Windows XP.


On 7/16/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
cleancache has been introduced on july the 9th, so it's not surprising it
doesn't work for you. You can try out the not yet approved 2.0 alpha 2:
http://people.apache.org/~xavier/ivy/staging/2.0.0-alpha2-incubating/

BTW, when using the 2.x version, I suggest replacing the fr.jayasoft.ivy by
org.apache.ivy in your antlib xmlns (seems you're still using jayasoft
package name in your error report).

Xavier

On 7/16/07, hezjing <[EMAIL PROTECTED]> wrote:
>
> I'm using Ivy built from trunk on 29th June
> (http://www.xoocode.org/downloads/tools/ivy/ivy.jar)
>
>
> On 7/16/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
> > On 7/16/07, hezjing <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi
> > >
> > > I got the following error when calling <ivy:cleancache />
> > >
> > > build.xml:27: Problem: failed to create task or type
> > > antlib:fr.jayasoft.ivy.ant:cleancache
> > > 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:\Install\apache-ant-1.7.0\lib
> > >         -C:\Documents and Settings\hez\.ant\lib
> > >         -a directory added on the command line with the -lib argument
> > >
> > >
> > > Is <ivy:cleancahce> ready?
> >
> >
> > It should be in trunk version only (and in not yet approved
> 2.0.0-alpha-2).
> > Which version are you using?
> >
> > Xavier
> >
> > --
> > >
> > > Hez
> > >
> >
> >
> >
> > --
> > Xavier Hanin - Independent Java Consultant
> > http://xhab.blogspot.com/
> > http://incubator.apache.org/ivy/
> > http://www.xoocode.org/
> >
>
>
> --
>
> Hez
>



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



--

Hez

Reply via email to