Nice, i almost forgot there is a Exam Factory overwrite, myself.
If you want, feel free to share, at best on github, then we could add
it to the Doc/Example section (currently here:
https://github.com/tonit/Learn-PaxExam)


On Fri, May 20, 2011 at 10:12 AM, Ivo Ladage-van Doorn
<ivo.ladage-vando...@gxsoftware.com> wrote:
> Hi Toni,
>
> Thanks for the information. For the time being I just used a custom framework 
> factory (using @ExamFactory annotation) and appended my own system packages 
> just before instantiating the OSGi container (Felix), which needs only a few 
> lines of code and will do for my case.
> I appreciate you quick response and of course your excellent work on Pax Exam!
>
> Regards, Ivo
>
> -----Original Message-----
> From: general-boun...@lists.ops4j.org 
> [mailto:general-boun...@lists.ops4j.org] On Behalf Of Toni Menzel
> Sent: vrijdag 20 mei 2011 9:49
> To: General OPS4J
> Subject: Re: Pax Exam 2.0.0 RC5 - Append system packages issue
>
> actually NativeContainer is missing quite some properties to be recognized.
> Lets see what we can put into it. Will create a jira issue for it so
> you can track.
>
> In the meantime you might need to go back using the paxrunner
> container for a while .
>
> Thx!
>
> On Fri, May 20, 2011 at 9:47 AM, Toni Menzel <t...@okidokiteam.com> wrote:
>> yes, thats true. Fixing that.
>>
>>
>> On Fri, May 20, 2011 at 9:44 AM, Ivo Ladage-van Doorn
>> <ivo.ladage-vando...@gxsoftware.com> wrote:
>>> Hi List,
>>>
>>>
>>>
>>> (I send this JIRA issue to the mailing list as JIRA signup is down)
>>>
>>>
>>>
>>> We are using Pax Exam 2 (RC5) for integration testing. I run into an issue
>>> trying to append system packages, using the system property
>>> org.osgi.framework.system.packages.extra. I provision the system property in
>>> a @Configuration annotated method, like this;
>>>
>>>
>>>
>>> org.ops4j.pax.exam.CoreOptions.systemProperty("org.osgi.framework.system.packages.extra")
>>>
>>>   .value("sun.misc,com.sun.management")
>>>
>>>
>>>
>>> In the previous Pax Exam version, this worked fine. In Pax Exam 2 however,
>>> it seems that this system property is overruled with the value
>>> "org.ops4j.pax.exam;version=.". Looking at the Pax Exam 2 code, this seems
>>> to happen in org.ops4j.pax.exam.nat.internal.NativeTestContainer line 209.
>>> It simply sets the org.osgi.framework.system.packages.extra property,
>>> ignoring any value already set.
>>>
>>>
>>>
>>> I did workaround the issue by using a custom FrameworkFactory, but shouldn't
>>> the NativeTestContainer append its own packages to the existing set of
>>> packages instead?
>>>
>>>
>>>
>>> Regards, Ivo
>>>
>>>
>>>
>>> GX Software | Ivo Ladage-van Doorn | Product Architect | Wijchenseweg 111 |
>>> 6538 SW Nijmegen | The Netherlands | T +31(0)24 - 388 82 61 | F +31(0)24 -
>>> 388 86 21 | ivo.ladage-vando...@gxsoftware.com | www.gxsoftware.com |
>>> twitter.com/GXSoftware
>>>
>>>
>>>
>>> _______________________________________________
>>> general mailing list
>>> general@lists.ops4j.org
>>> http://lists.ops4j.org/mailman/listinfo/general
>>>
>>>
>>
>>
>>
>> --
>> Toni Menzel Source
>>
>
>
>
> --
> Toni Menzel Source
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>



-- 
Toni Menzel Source

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to