You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Benjamin Reed (JIRA)" <ji...@apache.org> on 2012/05/31 18:39:23 UTC

[jira] [Updated] (KARAF-1515) features-generate-descriptor does not set the version in generated features

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

Benjamin Reed updated KARAF-1515:
---------------------------------

    Attachment: KARAF-1515.patch

Attached is a patch that resolves this, by adding the "hasVersion()" boolean method to the Feature object, and then checks that boolean in the karaf-maven-plugin when creating a features.xml file.
                
> features-generate-descriptor does not set the version in generated features
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-1515
>                 URL: https://issues.apache.org/jira/browse/KARAF-1515
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>            Reporter: Benjamin Reed
>             Fix For: 3.0.0
>
>         Attachments: KARAF-1515.patch
>
>
> When using features-generate-descriptor, the generated features.xml does not set a version.  It appears to be because the Feature model checks for null in getVersion(), so it's always returning either the set version string, or the string "0.0.0".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira