Hi, you can wrap the junit bundle and add those export declarations to it. [1]
Just make sure you don't have the junit configuration [2] in your project, as that will collide with your own custom declaration. Hope this helps, Achim [1] - https://ops4j1.jira.com/wiki/display/PAXEXAM4/Configuration+Options#ConfigurationOptions-wrappedBundle [2] - https://ops4j1.jira.com/wiki/display/PAXEXAM4/Configuration+Options#ConfigurationOptions-junitBundles 2016-12-27 22:34 GMT+01:00 Henri Tremblay <henri.tremb...@gmail.com>: > Hi, > > I've been fighting for a bunch of hours now so I hope someone can help me. > > I've trying to test EasyMock OSGi configuration with Pax-Exam. Everything > works fine except one thing. > > I need to export a conditional package from the JUnit bundle. With an > attribute. > > Normally I would import like this in my MANIFEST.MF: > > org.easymock.internal;poweruser=true > > I have no idea how to do that. > > With Pax-Exam 4. > > Thanks for your help, > Henri > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - ops4j@googlegroups.com > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ops4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.