Ivy
  1. Ivy
  2. IVY-1383

Documentation and Implementation mismatch of makepom

    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();
                                  ^^^^^^^^^^^^^^^^^^
                  }
              }
      ...
      
      1. makepom-doc.patch
        1 kB
        Thomas Kurpick

        Activity

        Hide
        Thomas Kurpick added a comment -

        patch for doc

        Show
        Thomas Kurpick added a comment - patch for doc
        Hide
        Maarten Coene added a comment -

        Patch applied.
        Thanks a lot for the contribution!

        Show
        Maarten Coene added a comment - Patch applied. Thanks a lot for the contribution!

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Thomas Kurpick
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development