You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2007/08/22 15:42:32 UTC

[jira] Commented: (FELIX-343) Add "additional-Resource" option

    [ https://issues.apache.org/jira/browse/FELIX-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521783 ] 

Richard S. Hall commented on FELIX-343:
---------------------------------------

Generally speaking, BND resource paths and Maven resource paths do not play well with each other. As previously stated in FELIX-261, I think we should be encouraging people that use this plugin to only use BND for including resources. It seems that this option is only useful for people who are using Maven resource paths, since it provides no benefit for people using Include-Resource; thus, it is ultimately encouraging people to use Maven resource paths.

Another way to look at this is that you want to change how the default value of Include-Resource is calculated...it sounds like you want it to always include the standard Maven resource paths and any specified paths are appended to the default value. I am not sure if this is how Maven handles its default values or not. However, as I understand it, the only default value is "src/main/resources" and this seems like a lot of effort to avoid typing 18 characters.


> Add "additional-Resource" option
> --------------------------------
>
>                 Key: FELIX-343
>                 URL: https://issues.apache.org/jira/browse/FELIX-343
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven Bundle Plugin
>    Affects Versions: 1.0.0
>            Reporter: Carsten Ziegeler
>         Attachments: patch.txt
>
>
> The "Include-Resource" option is currently a all-or-nothing option which is directly forwarded to bnd. One can either use the default (the maven resource paths) or specify the whole paths oneself. In many cases it is more desirable to just provide additional paths to the default maven paths.
> Therefore I created a patch which adds an "addtional-Resource" property. The logic is as follows:
> - If Include-Resource is specified but no additional-Resource: Include-Resource is forwarded to bnd
> - If Include-Resource is specified and additional-Resource: Include-Resource+','+additionalResource is forwarded to bnd
> - if no Include-Resource is specified and no additional-Resource: maven resource paths are forwarded to bnd
> - if no Include-Resource is specified and additional-Resource is given: maven resource paths + additionalResource are forwarded to bnd.

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