You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Ivan Varga (JIRA)" <ji...@apache.org> on 2013/11/07 14:21:18 UTC

[jira] [Commented] (IVY-645) Ivy not working with rpm install of ant

    [ https://issues.apache.org/jira/browse/IVY-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815939#comment-13815939 ] 

Ivan Varga commented on IVY-645:
--------------------------------

Same issue on CentOS release 6.4 (Final), but...

if I set up ANT_HOME, create symlink to ivy.jar in /usr/share/ant/lib/ and run ant --noconfig, it works.

[root@localhost e1]# env | grep ANT_HOME
ANT_HOME=/usr/share/ant

[root@localhost e1]# ll /usr/share/ant/lib/
total 8
drwxr-xr-x 4 root root 4096 Jun 17 13:42 ..
lrwxrwxrwx 1 root root   27 Jun 17 13:42 ant-launcher.jar -> ../../java/ant-launcher.jar
lrwxrwxrwx 1 root root   18 Jun 17 13:42 ant.jar -> ../../java/ant.jar
lrwxrwxrwx 1 root root   28 Jun 17 13:42 ant-bootstrap.jar -> ../../java/ant-bootstrap.jar
lrwxrwxrwx 1 root root   29 Jun 17 13:42 ant-nodeps.jar -> ../../java/ant/ant-nodeps.jar
lrwxrwxrwx 1 root root   27 Oct 17 21:21 ant-trax.jar -> ../../java/ant/ant-trax.jar
lrwxrwxrwx 1 root root   18 Nov  7 11:56 ivy.jar -> ../../java/ivy.jar
drwxr-xr-x 2 root root 4096 Nov  7 11:56 .

Installed Packages
Name        : ant
Arch        : x86_64
Version     : 1.7.1
Release     : 13.el6
Size        : 7.5 M
Repo        : installed
>From repo   : base
Summary     : Ant build tool for java
URL         : http://ant.apache.org/
License     : ASL 2.0 and W3C
Description : Ant is a platform-independent build tool for java. It's used by apache
            : jakarta and xml projects.

Installed Packages
Name        : apache-ivy
Arch        : noarch
Version     : 2.1.0
Release     : 1.el6
Size        : 986 k
Repo        : installed
>From repo   : epel
Summary     : Java-based dependency manager
URL         : http://ant.apache.org/ivy/
License     : ASL 2.0
Description : Apache Ivy is a tool for managing (recording, tracking, resolving and
            : reporting) project dependencies.  It is designed as process agnostic and is
            : not tied to any methodology or structure. while available as a standalone
            : tool, Apache Ivy works particularly well with Apache Ant providing a number
            : of powerful Ant tasks ranging from dependency resolution to dependency
            : reporting and publication.

[root@localhost e1]# ant --execdebug
exec "/usr/java/jdk1.7.0_17/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/java/jdk1.7.0_17/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""
Buildfile: build.xml

test:

BUILD FAILED
/root/ivy-workspace/e1/build.xml:3: 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.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -/usr/share/ant/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds

[root@localhost e1]# ant --execdebug --noconfig
exec "/usr/java/jdk1.7.0_17/jre/bin/java" -classpath "/usr/share/ant/lib/ant-launcher.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" org.apache.tools.ant.launch.Launcher -cp ""
Buildfile: build.xml

test:

BUILD SUCCESSFUL
Total time: 0 seconds

With --noconfig -classpath is resolved with "/usr/share/ant/lib/ant-launcher.jar".

> Ivy not working with rpm install of ant
> ---------------------------------------
>
>                 Key: IVY-645
>                 URL: https://issues.apache.org/jira/browse/IVY-645
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-alpha-2
>         Environment: openSuse 10.3, ant 1.7.0
>            Reporter: Jonathan Doklovic
>
> After installing ant via the package manager (Yast2) and adding the ivy jar to /usr/share/ant/lib ant doesn't find ivy on the classpath and no ivy tasks will work.



--
This message was sent by Atlassian JIRA
(v6.1#6144)