Ivy
  1. Ivy
  2. IVY-1391

IvyPublish fails when using extend tags with no explicit location attribute

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3.0-RC2
    • Fix Version/s: 2.3.0
    • Component/s: Core
    • Labels:
      None

      Description

      IvyPublish fails to resolve parent when using extends tag with no explicit location attribute.

      It fails with the following error :

      Caused by: java.text.ParseException: Unable to parse included ivy file for apache#extends-parent;latest.integration
      

        Activity

        Hide
        Jean-Louis Boudart added a comment -

        Error seems to came from XmlModuleDescriptorParser.extendsStarted() :

        DefaultExtendsDescriptor ed = new DefaultExtendsDescriptor(
                            parent,
                            attributes.getValue("location"),
                            (String[]) extendTypes.toArray(new String[extendTypes.size()]),
                            local);
        

        attributes.getValue("location") can be null if not set, this value is then stored in [module]-[rev]-parents.properties. The value is never resolved correctly.

        Show
        Jean-Louis Boudart added a comment - Error seems to came from XmlModuleDescriptorParser.extendsStarted() : DefaultExtendsDescriptor ed = new DefaultExtendsDescriptor( parent, attributes.getValue( "location" ), ( String []) extendTypes.toArray( new String [extendTypes.size()]), local); attributes.getValue("location") can be null if not set, this value is then stored in [module] - [rev] -parents.properties. The value is never resolved correctly.
        Hide
        Jean-Louis Boudart added a comment -

        Fixed in trunk and 2.3.x branch

        Show
        Jean-Louis Boudart added a comment - Fixed in trunk and 2.3.x branch

          People

          • Assignee:
            Unassigned
            Reporter:
            Jean-Louis Boudart
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development