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 2011/06/25 21:55:47 UTC

[jira] [Resolved] (FELIX-1985) Error when Include-Resource instruction contains duplicate paths.

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

Stuart McCulloch resolved FELIX-1985.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-bundle-plugin-2.3.5
         Assignee: Stuart McCulloch

Changed the error into a warning in r1139605

> Error when Include-Resource instruction contains duplicate paths.
> -----------------------------------------------------------------
>
>                 Key: FELIX-1985
>                 URL: https://issues.apache.org/jira/browse/FELIX-1985
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.1
>         Environment: Linux quartz 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
>            Reporter: Pierre Bourret
>            Assignee: Stuart McCulloch
>            Priority: Minor
>             Fix For: maven-bundle-plugin-2.3.5
>
>
> With the following maven-bundle-plugin configuration :
>       <plugin>
>         <groupId>org.apache.felix</groupId>
>         <artifactId>maven-bundle-plugin</artifactId>
>         <version>2.0.1</version>
>         <extensions>true</extensions>
>         <configuration>
>           <instructions>
>             ...
>             <Include-Resource>
>               {maven-resources},
>               META-INF/LICENSE=LICENSE,
>               META-INF/NOTICE=NOTICE
>             </Include-Resource>
>           </instructions>
>         </configuration>
>       </plugin>
> I get these errors :
>     [ERROR] Error building bundle org.ow2.chameleon.handies:org.ow2.chameleon.handies.ipojo-tccl-handler:bundle:0.0.1-SNAPSHOT : Input file does not exist: LICENSE~
>     [ERROR] Error building bundle org.ow2.chameleon.handies:org.ow2.chameleon.handies.ipojo-tccl-handler:bundle:0.0.1-SNAPSHOT : Input file does not exist: NOTICE~
>     [ERROR] Error(s) found in bundle configuration
> (Note the trailing '~' at the end of the real file names)
> But when I insert whitespaces around the '=' symbol (either before or after it), it works : neither error nor warning.
>             <Include-Resource>
>               {maven-resources},
>               META-INF/LICENSE =LICENSE,
>               META-INF/NOTICE= NOTICE
>             </Include-Resource>
>    [INFO] BUILD SUCCESSFUL
> The first configuration (the one without spaces around '=') works with the 1.4.3 version of the maven-bundle-plugin.
> Is this a regression ? Or maybe the syntax of the Include-Resource instruction has changed since the 1.4.3 version (may it affect other instruction too ?).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira