[ 
https://issues.apache.org/jira/browse/FELIX-909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668774#action_12668774
 ] 

Stuart McCulloch commented on FELIX-909:
----------------------------------------

Whitespace _is_ allowed in manifest properties: 
http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Name-Value%20pairs%20and%20Sections

Your patch would strip all formatting from descriptions and other such 
properties, which is completely wrong.
BTW, I just tried a quick test with bundleplugin 1.4.3 and the (non-standard) 
metadata entry you mentioned:

  <Import-Bundle>
      com.bla.api,
      com.bla.impl
  </Import-Bundle>

and while you will see whitespace between the 2 entries, the generated manifest 
is still valid and deploys correctly to an OSGi framework.
Can you provide a sample testcase (ie. pom.xml, etc. that I can build and test) 
that clearly demonstrates the problem of an invalid manifest.

Otherwise, it sounds more like you need to enhance your manifest parser to 
support whitespace....

> 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: 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.

Reply via email to