Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-915

Examples broken due to removal of antlib.xml from ivy.jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.0.0-beta-2
    • None
    • Documentation
    • None
    • Windows, Java 1.5, Ant 1.7.0

    Description

      I installed Ivy 2.0.0.beta2 as per the first method in the install directions (manually unzip the distribution and copy the ivy jar into ANT_HOME/lib).

      Then upon running 'ant' in the hello-ivy example, the following error occurs in ant:

      BUILD FAILED
      C:\java\apache-ivy-2.0.0-beta2\tutorial\src\example\hello-ivy\build.xml:38: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
      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:\java\apache-ant-1.7.0\lib
      -C:\Documents and Settings\timu\.ant\lib
      -a directory added on the command line with the -lib argument

      It appears that the examples assume that org/apache/ivy/ant/antlib.xml is present in the ivy.jar. This file was present in the 2.0.0.beta1 version of the ivy.jar, but appears to have been removed as of beta2.

      Either the antlib.xml needs to be added back into the ivy jar, or the example build.xml files need to be updated with appropriate taskdefs.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            timu Tim U
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: