felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@adobe.com>
Subject Re: Empty header generation using maven-bundle-plugin
Date Tue, 03 Jul 2012 10:39:40 GMT
Hi,


Am 03.07.2012 um 12:28 schrieb Neil Bartlett:

> Yup, bnd discards empty headers; this is quite often helpful if you
> use a wildcard or a macro expansion. Anyway in "raw" bnd you can
> explicitly create an empty header as follows:
> 
>    Meta-Persistence: <<EMPTY>>
> 
> I guess that in the bundle-plugin this might translate to:
> 
>    <Meta-Persistence>&lt;&lt;EMPTY&gt;&gt;</Meta-Persistence>
> 
> ... but I don't have an easy way to try this out!

Thanks for the hint. Just tested in bundle plugin 2.3.7 and it seems to work.

Regards
Felix

> 
> Neil
> 
> On Tue, Jul 3, 2012 at 11:13 AM, Graham Charters <gcharters@gmail.com> wrote:
>> Hi,
>> 
>> It seems to be becoming a more common practice to have extender opt-in
>> manifest headers that contain no value by default (e.g.
>> Meta-Persistence).  I tried to generate such a header with the
>> maven-bundle-plugin using
>> 
>> <instructions>
>>    <Meta-Persistence> </Meta-Persistence>
>> </instructions>
>> 
>> but it seems if the entry only contains whitespace, then the header is
>> omitted.  Is there a way to generate empty headers using the
>> maven-bundle-plugin, or would this need an enhancement?
>> 
>> Many thanks for any help.
>> 
>> Regards, Graham.
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message