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

Documentation and Implementation mismatch of makepom

    XMLWordPrintableJSON

Details

    Description

      The documentation of the makepom task is not consistent with the implementation.

      Documentation:

      Attribute Description Required
      ... ... ...
      artifactPackaging The packaging of the artifact which is represented by the generated pom file. (since 2.2) No, the artifact ext is taken by default. Defaults to 'pom' if no such artifact is defined.
      ... ... ...

      Implementation:

      PomModuleDescriptorWriter.java
      ...
              String packaging = options.getArtifactPackaging();
              if (packaging == null) {
                  // find artifact to determine the packaging
                  Artifact artifact = findArtifact(md, artifactId);
                  if (artifact == null) {
                      // no suitable artifact found, default to 'pom'
                      packaging = "pom";
                  } else {
                      packaging = artifact.getType();
                                  ^^^^^^^^^^^^^^^^^^
                  }
              }
      ...
      

      Attachments

        1. makepom-doc.patch
          1 kB
          Thomas Kurpick

        Activity

          People

            maartenc Maarten Coene
            thomaskurpick Thomas Kurpick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: