You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2012/10/22 23:20:12 UTC

[jira] [Resolved] (IVY-1383) Documentation and Implementation mismatch of makepom

     [ https://issues.apache.org/jira/browse/IVY-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-1383.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0
         Assignee: Maarten Coene

Patch applied.
Thanks a lot for the contribution!
                
> Documentation and Implementation mismatch of makepom
> ----------------------------------------------------
>
>                 Key: IVY-1383
>                 URL: https://issues.apache.org/jira/browse/IVY-1383
>             Project: Ivy
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.3.0-RC1
>         Environment: All
>            Reporter: Thomas Kurpick
>            Assignee: Maarten Coene
>            Priority: Minor
>              Labels: documentation, patch
>             Fix For: 2.3.0
>
>         Attachments: makepom-doc.patch
>
>
> 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 {color:red}ext{color} is taken by default. Defaults to 'pom' if no such artifact is defined.|
> |...|...|...|
> Implementation:
> {code:title=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();
>                             ^^^^^^^^^^^^^^^^^^
>             }
>         }
> ...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira