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 2009/01/30 10:13:59 UTC

[jira] Resolved: (FELIX-909) White spaces in the Import-Bundle of theManifest file

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

Stuart McCulloch resolved FELIX-909.
------------------------------------

    Resolution: Won't Fix

Your example creates a bundle that loads fine on both Felix and Equinox, so the manifest is valid from an OSGi perspective.

What you're asking for is special handling for a certain property (Import-Bundle) that isn't part of the OSGi standard and appears to have restrictions on its content (no whitespace) purely due to the limitations of some code that's supposed to parse it. Rather than go round fixing all the tools that could conceivably create manifests, it is better to fix this particular parser - handling whitespace should be trivial and is supported by most parser generators. At the very least all you need to do is apply your suggested search-and-replace when reading this property from the bundle manifest, before you attempt to parse it.

> White spaces in the Import-Bundle of theManifest file
> -----------------------------------------------------
>
>                 Key: FELIX-909
>                 URL: https://issues.apache.org/jira/browse/FELIX-909
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.3
>            Reporter: Boris Burgstaller
>         Attachments: example.txt, patch.txt
>
>
> We are using the Maven Bundle Plugin to generate our bundles and manifests.
> We are using the Import-Bundle  and we noticed that it does not remove the white spaces coming from the xml if you format it like this:
> <Import-Bundle>
>     com.bla.api,
>     com.bla.impl
> </Import-Bundle>
> We deploy some bundles on a springsource dm server, and if the manifest contains whitespaces and newlines, it falis to parse the file.
> could you please remove the white spaces for this property?

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