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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3-RC2
    • 1.3.1
    • Core
    • None
    • 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());

      Attachments

        Activity

          People

            xavier Xavier Hanin
            hayesp25 Peter Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: