On Sun, Oct 12, 2014 at 9:38 AM, rsteppac2 <r...@steppacher.name> wrote:

> Neil,
>
> Hm... it appears to work though. I can list packages with ";" and then add
> a
> qualifier like "resolution" or "version" at the end and start a new list
> with a ",".
>
> <Import-Package>
>




>         org.junit.*;
>         org.relaxng.datatype;
>         resolution:=optional,
>

All of this will be interpreted as one single package "rule" and
org.relaxng.datatype will end up somewhere in the aether as semicolon is
used to separate "parameters" of the rule, such as "version".



>         ch.vivates.ams.base.domain;
>         ch.vivates.ams.camel.compoment.uldap;
>         version=${project.version},
>

All of this will be the next rule and ch.vivates.ams.camel.compoment.uldap
will also end up who knows where as bnd thinks it's some parameter with no
value.



>         *
>

This will let bnd calculate everything else which may accidentally solve
the problems you caused yourself with org.relaxng.datatype and
ch.vivates.ams.camel.compoment.uldap if it happens to see this in some uses
somewhere in your code.

This is all to say that simply because something appears to work, if you
break the rules you are shooting yourself in the foot.

So, as Neil said, and he really is not fooling you.. use a comma for the
package rule delimiter.

- Ray



> </Import-Package>
>
> The above results in a manifest that imports all junit packages and the
> relaxng package with resolution:=optional and my own two packages with the
> enforced version, plus everything else as it would be generated by default.
>
> Ralf
>
>
>
> --
> View this message in context:
> http://apache-felix.18485.x6.nabble.com/Import-missing-tp5010122p5010131.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect
*Liferay, Inc.* <http://www.liferay.com> (@Liferay)

Reply via email to