You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Sahoo (JIRA)" <ji...@apache.org> on 2009/02/14 08:47:59 UTC

[jira] Created: (FELIX-941) Support singleton & fragment-attachment directive generation

Support singleton & fragment-attachment directive generation
------------------------------------------------------------

                 Key: FELIX-941
                 URL: https://issues.apache.org/jira/browse/FELIX-941
             Project: Felix
          Issue Type: Improvement
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-1.6.0
         Environment: generic
            Reporter: Sahoo


It will be good to have some way to configure mvn-bundle-plugin to generate singleton and fragment-attachment directives in Bundle-SymbolicName header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-941) Support singleton & fragment-attachment directive generation

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673489#action_12673489 ] 

Stuart McCulloch commented on FELIX-941:
----------------------------------------

you can already do:

  <Bundle-SymbolicName>org.foo.example;singleton=true</Bundle-SymbolicName>

or were you thinking of configuring this another way?

> Support singleton & fragment-attachment directive generation
> ------------------------------------------------------------
>
>                 Key: FELIX-941
>                 URL: https://issues.apache.org/jira/browse/FELIX-941
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>
> It will be good to have some way to configure mvn-bundle-plugin to generate singleton and fragment-attachment directives in Bundle-SymbolicName header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-941) Support singleton & fragment-attachment directive generation

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch resolved FELIX-941.
------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-bundle-plugin-1.6.0

OK, we now store the generated default symbolicname in a property called "maven-symbolicname".

To use this property in your POM instructions you'll need to use brackets '()' instead of braces '{}' to
stop Maven from replacing it with null (ie. undefined) before the XML text reaches the bundleplugin:

   <Bundle-SymbolicName>$(maven-symbolicname);singleton:=true</Bundle-SymbolicName>

But if you put it in a separate file (ie.not directly in the POM) you can use ${maven-symbolicname}

> Support singleton & fragment-attachment directive generation
> ------------------------------------------------------------
>
>                 Key: FELIX-941
>                 URL: https://issues.apache.org/jira/browse/FELIX-941
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.6.0
>
>
> It will be good to have some way to configure mvn-bundle-plugin to generate singleton and fragment-attachment directives in Bundle-SymbolicName header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-941) Support singleton & fragment-attachment directive generation

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch reassigned FELIX-941:
--------------------------------------

    Assignee: Stuart McCulloch

> Support singleton & fragment-attachment directive generation
> ------------------------------------------------------------
>
>                 Key: FELIX-941
>                 URL: https://issues.apache.org/jira/browse/FELIX-941
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>            Assignee: Stuart McCulloch
>
> It will be good to have some way to configure mvn-bundle-plugin to generate singleton and fragment-attachment directives in Bundle-SymbolicName header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-941) Support singleton & fragment-attachment directive generation

Posted by "Sahoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673514#action_12673514 ] 

Sahoo commented on FELIX-941:
-----------------------------

Although I can do what you suggested, I would prefer an alternative way that avoids me to specify Bundle-SymbolicName. I let maven-bundle-plugin come up with the Bundle-SymbolicName using a standard algorithm for all my bundles and that results in a consistent behavior. If I hard code the name or the logic in my pom.xml, it may lead to an inconsistent result. 

> Support singleton & fragment-attachment directive generation
> ------------------------------------------------------------
>
>                 Key: FELIX-941
>                 URL: https://issues.apache.org/jira/browse/FELIX-941
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>
> It will be good to have some way to configure mvn-bundle-plugin to generate singleton and fragment-attachment directives in Bundle-SymbolicName header.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.