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

Maarten Coene updated IVY-1383:
-------------------------------

    Remaining Estimate:     (was: 0.5h)
     Original Estimate:     (was: 0.5h)
    
> 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
>            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

Reply via email to