I am not sure how the instance of the framework is being created, but if you are creating it directly then it won't see configuration properties that are set as system properties. However, if the launcher is used to start the framework, then the launcher automatically copies any configuration properties from the system properties.

-> richard

On 02/24/2011 01:14 AM, Alex Karasulu wrote:
Hi all,

I have a situation where I would like to set the
FelixConstants.FRAMEWORK_SYSTEMPACKAGES_EXTRA property in my pom for
use with surefire. I would like to supply all the packages that would
be on the Import-Packages attribute if the manifest is generated for
everything on the "test" classpath.

I have a class that embeds Felix for plugins in one module. Then
another integration test module tests that Felix embedding class. The
problem is I get CCE exceptions if I access plugin interfaces to test
the plugin so I would like to have the build construct the list of
extra system packages so I don't have to manually update these values
in the code.

Is there a hack anyone uses for this?

Thanks in advance,
Alex

Reply via email to