You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2008/07/09 10:41:31 UTC

[jira] Resolved: (FELIX-556) Filtering mechanims to

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

Stuart McCulloch resolved FELIX-556.
------------------------------------

    Resolution: Fixed

I've added some code to trunk that allows you to filter inlined dependencies, the new syntax is:

  dependencies ::= clause ( ',' clause ) *
  clause ::= MATCH ( ';' attr '=' MATCH | ';inline=' INLINE )
  attr ::= 'groupId' | 'artifactId' | 'version' | 'scope' | 'type' | 'classifier'
  INLINE ::= 'true' | 'false' | MATCH
  MATCH ::= <globbed regular expressions>

So for example, the following bundleplugin meta-instruction:

  <Embed-Dependency>foo;inline=META-INF/**|etc/*</Embed-Dependency>

will be translated into something like the following Bnd instruction:

  Include-Resource: @foo.jar!/META-INF/**, @foo.jar!/etc/*

which asks Bnd to inline anything under META-INF and a single level under etc.

I'll add this (along with more examples) to the official docs when I prepare the 1.4.2 release.

> Filtering mechanims to <Embed-Dependency/>
> ------------------------------------------
>
>                 Key: FELIX-556
>                 URL: https://issues.apache.org/jira/browse/FELIX-556
>             Project: Felix
>          Issue Type: New Feature
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.1
>         Environment: Any
>            Reporter: Saminda Wishwajith Abeyruwan
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.4.2
>
>
> There are situations where one needed to get resources from files other than jar files (zip, mar, aar etc. )in the classpath. maven-bunlde-plugin provides <Embed-Dependency/> to embed dependencies. But this includes whole of resources without any restriction, which could be cumbersome. If a simple filtering mechanism can be introduced in this section, it would be really helpful. 

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