I know this is a bit specific, but I've tried everything I could think of. I am running some integration tests using pax-exam, and logging is supposed to use pax-logging.
This works fine when directly running the felix container, but if I start it through pax-exam, pax-logging never gets configured (it doesn't have the bundles.configuration.location
vm proeperty, so it cannot find the services/org.ops4j.pax.logging.properties
).
The way I'm trying to set this, but which doesn't seem to work, is by using:
@Configuration
public Option[] configuration() throws IOException {
Option[] options = new Option[]{
vmOption("-Dbundles.configuration.location=mypath)
}
return options;
}
I'd appreciate any advice you may have. Thanks a lot!