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

Stuart McCulloch commented on FELIX-343:
----------------------------------------

yes, unfortunately maven resolves the variable ${maven-resources} to null 
before it gets to the plugin :(

I think using {maven-resources} is the next best option, as it still suggests 
substitution - the only issue
is that {...} usually means the resources in that path will be filtered by BND 
(see PeterK's webpage) so
there could be some initial confusion, but nothing that couldn't be covered in 
the docs...

alternative forms include:   [maven-resources]   or   (maven-resources)

could even use:   %maven-resources%   (ie. windows style)   @maven-resources@   
(ie. ant style)

WDYT?

> 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
>            Assignee: Stuart McCulloch
>         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.

Reply via email to