You can check what is really in the classpath by running ant -diagnostics (in java.classpath).
By the way, which version of ant are you using? Gilles > -----Original Message----- > From: jonathan doklovic [mailto:[EMAIL PROTECTED] > Sent: jeudi 15 novembre 2007 15:24 > To: [email protected] > Subject: ivy not working out of the box > > Hi, > > I downloaded ivy, copied the ivy-2.0.0-alpha2-incubating.jar to > my /usr/share/ant/lib (where all the ant jars are) folder. Then I CD'd > into > the /apache-ivy-2.0.0-alpha2-incubating/src/example/build-a-ivy-repository > folder, and ran: ant > advanced > > It seems it has a problem looking up the antlib.xml from the xmlns. > Here's the error: > > BUILD FAILED > /home/jdoklovic/apps/apache-ivy-2.0.0-alpha2-incubating/src/example/build-a-ivy- > repository/build.xml:36: Problem: failed to create task or type > antlib:org.apache.ivy.ant:settings > 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: > -/usr/share/ant/lib > -/home/jdoklovic/.ant/lib > -a directory added on the command line with the -lib argument > > > > > > Here's the top of the build file: > > > > <project name="ivy-repository" default="basic" > xmlns:ivy="antlib:org.apache.ivy.ant"> > <property name="configuration-dir" value="config"/> > <property name="from-resolver" value="libraries"/> > <property name="to-resolver" value="sftp-repository"/> > > <property name="ivy.cache.dir" value="${basedir}/cache" /> > <property name="dest.repo.dir" > value="${basedir}/ivy-local-repository" /> > > <ivy:settings id="basic.settings" > file="${configuration-dir}/ivysettings-basic.xml"/> > <ivy:settings id="maven1.settings" > file="${configuration-dir}/ivysettings-maven1.xml"/> > <ivy:settings id="maven2.settings" > file="${configuration-dir}/ivysettings-maven2.xml"/> > <ivy:settings id="advanced.settings" > file="${configuration-dir}/ivysettings-advanced.xml"/> > > > > Any ideas? > > Thanks, > > - Jonathan
