On 2023-04-26, LINUS FERNANDES wrote:

> I have the same error on Arch Linux on Termux:

> echo $ANT_HOME
> /usr/share/ant

> root07:40IvySample$ ls /usr/share/ant/lib
> ant-antlr.jar
> ant-apache-bcel.jar
> ant-apache-bsf.jar
> ant-apache-log4j.jar
> ant-apache-oro.jar
> ant-apache-regexp.jar
> ant-apache-resolver.jar
> ant-apache-xalan2.jar
> ant-commons-logging.jar
> ant-commons-net.jar
> ant-contrib-1.0b3.jar
> ant-contrib-20020829.jar
> ant-imageio.jar
> ant-jai.jar
> ant.jar
> ant-javamail.jar
> ant-jdepend.jar
> ant-jmf.jar
> ant-jsch.jar
> ant-junit4.jar
> ant-junit.jar
> ant-junitlauncher.jar
> ant-launcher.jar
> ant-netrexx.jar
> ant-swing.jar
> ant-testutil.jar
> ant-xz.jar
> apiguardian-api-1.1.2.jar
> commons-net-3.9.0.jar
> images
> ivy-2.5.1.jar
> junit-platform-commons-1.9.2.jar
> junit-platform-engine-1.9.2.jar
> junit-platform-launcher-1.9.2.jar
> opentest4j-1.2.0.jar
> root07:40IvySample$ vim build.xml
> root07:42IvySample$ ant
> Buildfile: /root/IvySample/build.xml

> init-ivy:

> retrieve:

> BUILD FAILED
> /root/IvySample/build.xml:12: ivy:retrieve doesn't support the "pathid"
> attribute

The only way I can explain this is there is another jar that contains an
older version of Ivy on your classpath and this one is loaded first.

As you can see in my output, Ivy announces its version number

>> retrieve:
>> [ivy:retrieve] :: Apache Ivy 2.5.1 - 20221101102211 ::
>> https://ant.apache.org/ivy/ ::

what does it say in your case when you remove the pathid attribute?

Stefan

Reply via email to