Ivy
  1. Ivy
  2. IVY-191

M2 compatibility does not take into account the . replacement for publishing artifacts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3-RC2
    • Fix Version/s: 1.3.1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      When setting the m2 compatibility flag on a resolver, the code does not replace the "." with "/" when publishing artifacts.

      Here is the fixed code :

      Class : fr.jayasoft.ivy.resolver.RepositoryResolver
      Method : public void publish(Artifact artifact, File src, boolean overwrite)

      replace

      String dest = IvyPatternHelper.substitute(destPattern, artifact);

      with

      // Check for m2 compatibility
      ModuleRevisionId mrid = artifact.getModuleRevisionId();
      if (isM2compatible())

      { mrid = convertM2IdForResourceSearch(mrid); }

      String dest = IvyPatternHelper.substitute(destPattern,
      mrid.getOrganisation(),
      mrid.getName(),
      mrid.getRevision(),
      artifact.getName(),
      artifact.getType(),
      artifact.getExt());

        Activity

        Peter Hayes created issue -
        Hide
        Xavier Hanin added a comment -

        I've integrated your fix into svn trunk, thanks a lot for your contribution

        Show
        Xavier Hanin added a comment - I've integrated your fix into svn trunk, thanks a lot for your contribution
        Jeff Turner made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          People

          • Assignee:
            Xavier Hanin
            Reporter:
            Peter Hayes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development