$ ant -v
               Apache Ant(TM) version 1.10.12 compiled on December 12 1969
                                   Trying the default build file:
build.xml        Buildfile: /root/IvySample/build.xml            Detected
Java version: 20 in: /usr/lib/jvm/java-20-openjdk
            Detected OS: Linux                              parsing
buildfile /root/IvySample/build.xml with URI =
file:/root/IvySample/build.xml           Project base dir set to:
/root/IvySample        parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with
URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file           [property] Loading Environment env.
Build sequence for target(s) `retrieve' is [init-ivy, retrieve]
                     Complete build sequence is [init-ivy, retrieve, ]

             init-ivy:                                       parsing
buildfile jar:file:/root/.ant/lib/ivy.jar!/org/apache/ivy/ant/antlib.xml
with URI = jar:file:/root/.ant/lib/ivy.jar!/org/apache/ivy/ant/antlib.xml
from a zip file                      parsing buildfile
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
with URI =
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
from a zip file  parsing buildfile
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
with URI =
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
from a zip file                                                  retrieve:
                                     parsing buildfile
jar:file:/root/.ant/lib/ivy.jar!/org/apache/ivy/ant/antlib.xml with URI =
jar:file:/root/.ant/lib/ivy.jar!/org/apache/ivy/ant/antlib.xml from a zip
file                      parsing buildfile
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
with URI =
jar:file:/usr/share/ant/lib/ivy-2.5.1.jar!/org/apache/ivy/ant/antlib.xml
from a zip file                                                  BUILD
FAILED                                    /root/IvySample/build.xml:16:
ivy-retrieve doesn't support the "pathid" attribute
 at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:536)
      at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:463)
      at org.apache.tools.ant.Task.maybeConfigure(Task.java:203)
                          at
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:202)
                 at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:166)
                at org.apache.tools.ant.Task.perform(Task.java:349)
                                     at
org.apache.tools.ant.Target.execute(Target.java:449)
                 at
org.apache.tools.ant.Target.performTasks(Target.java:470)
                  at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
                 at
org.apache.tools.ant.Project.executeTarget(Project.java:1374)
                  at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
                             at
org.apache.tools.ant.Main.runBuild(Main.java:818)
                  at org.apache.tools.ant.Main.startAnt(Main.java:223)
                                      at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
                  at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
         Caused by: The <ivy-retrieve> type doesn't support the "pathid"
attribute.                              at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:414)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:527)
      ... 15 more
                   Total time: 5 seconds

On Wed, 26 Apr 2023, 16:23 Stefan Bodewig, <bode...@apache.org> wrote:

> 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