ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Kurpick (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IVY-1383) Documentation and Implementation mismatch of makepom
Date Fri, 19 Oct 2012 12:54:11 GMT

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

Thomas Kurpick updated IVY-1383:
--------------------------------

    Attachment: makepom-doc.patch

patch for doc
                
> 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
>         Attachments: makepom-doc.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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

Mime
View raw message