ah ok... now I get you I think :-) well, not really; either you use the config file method translators to edit etc/org.apache.karaf.features.cfg (that one is documented). In addition 4.0 now also supports the pax exam FeaturesScannerProvision method to add additional feature files (see [1]).
I hope this helps; otherwise feel free to ping again :-) Kind regards, Andreas [1] https://github.com/openengsb/labs-paxexam-karaf/blob/master/regression/src/test/java/org/openengsb/labs/paxexam/karaf/regression/FeaturesScannerProvisionTest.java On Wed, Nov 16, 2011 at 21:41, mikevan <[email protected]> wrote: > No worries. I'm talking about the features.xml documents we use in Karaf > to deploy features. > > ----- Original Message ----- > From: "Andreas Pieber [via Karaf]" < > [email protected]> > To: "mikevan" <[email protected]> > Sent: Wednesday, November 16, 2011 3:39:39 PM > Subject: Re: Release PaxExam Karaf Testframework 0.4.1 > > Hey Mike, > > > I'm sorry, but what do you mean by "use a provisioning document" :-) > > > Kind regards, > Andreas > > > On Wed, Nov 16, 2011 at 21:34, mikevan < [hidden email] > wrote: > > > > > Andreas, > > > > Did you update the documentation to show how you can use a provisioning > document to load bundles into a pax-exam test? > > > > > ----- Original Message ----- > > > From: "Andreas Pieber [via Karaf]" < [hidden email] > > To: "mikevan" < [hidden email] > > Sent: Wednesday, November 16, 2011 3:09:20 PM > Subject: Release PaxExam Karaf Testframework 0.4.1 > > Hey Guys, > > > I've finished the fourth feature release of the Pax Exam Karaf > Testframework today and pushed it to maven central (should be there within > the next hours). > > > If you already have used a previous version the changelog is: > > "The 0.4.1 release contains 6 bug fixes. The most important bug-fixes are > the support of the file protocol, support spaces in the test-path correctly > and handle the "-" in Snapshot paths correctly." > > > Otherwise you might want to give it shot if you need to do integration > tests on Karaf base. It is as simple as adding the following to your pom... > > > > <dependency> > <groupId>org.openengsb.labs. paxexam . karaf </groupId> > <artifactId> paxexam - karaf -container</artifactId> > <version> 0 .4.1</version> > > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.ops4j.pax.exam</groupId> > <artifactId>pax-exam-junit4</artifactId> > <version>2.3. 0 .M 1 </version> > > <scope>test</scope> > </dependency> > > > ... reference your karaf based distribution ... > > > <dependency> > <groupId>org.apache. karaf </groupId> > <artifactId>apache- karaf </artifactId> > > <version>2.2.4</version> > <type>zip</type> > <scope>test</scope> > <exclusions> > <exclusion> > <groupId>org.apache. karaf .shell</groupId> > <artifactId>org.apache. karaf .shell.dev</artifactId> > > </exclusion> > </exclusions> > </dependency> > > > > > ... and the following configuration section ... > > > @Configuration > public Option[] config() { > return new Option[]{ karafDistributionConfiguration().frameworkUrl( > maven().groupId("org.apache. karaf ").artifactId("apache- karaf > ").type("zip").versionAsInProject()) }; > } > > ... and your integration tests will run on the framework you've just > configured. The full documentation could be found here [ 1 ]. The changeset > of the new feature release could be found here [2]. Have fun and > don't hesitate to report any problems you encounter at this list or here > [3]. Btw, all sources are under Apache 2 License here [4] and will be > included in the karaf 3 release . It's just out of the ASF repos right > now so that it can be developed/released in faster cycles. BTW, hopefully > this is the last release outside the ASF. I'll start to replace our > current integration tests at Karaf and merge the source into the trunk by > next week... > > > > > > I've finished the fourth feature release of the Pax Exam Karaf > Testframework today and pushed it to maven central (should be there within > the next hours). > > > If you already have used a previous version the changelog is: > > "The 0.4.1 release contains 6 bug fixes. The most important bug-fixes are > the support of the file protocol, support spaces in the test-path correctly > and handle the "-" in Snapshot paths correctly." > > > Otherwise you might want to give it shot if you need to do integration > tests on Karaf base. It is as simple as adding the following to your pom... > > > > <dependency> > <groupId>org.openengsb.labs. paxexam . karaf </groupId> > <artifactId> paxexam - karaf -container</artifactId> > <version> 0 .4.1</version> > > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.ops4j.pax.exam</groupId> > <artifactId>pax-exam-junit4</artifactId> > <version>2.3. 0 .M 1 </version> > > <scope>test</scope> > </dependency> > > > ... reference your karaf based distribution ... > > > <dependency> > <groupId>org.apache. karaf </groupId> > <artifactId>apache- karaf </artifactId> > > <version>2.2.4</version> > <type>zip</type> > <scope>test</scope> > <exclusions> > <exclusion> > <groupId>org.apache. karaf .shell</groupId> > <artifactId>org.apache. karaf .shell.dev</artifactId> > > </exclusion> > </exclusions> > </dependency> > > > > > ... and the following configuration section ... > > > @Configuration > public Option[] config() { > return new Option[]{ karafDistributionConfiguration().frameworkUrl( > maven().groupId("org.apache. karaf ").artifactId("apache- karaf > ").type("zip").versionAsInProject()) }; > } > > ... and your integration tests will run on the framework you've just > configured. The full documentation could be found here [ 1 ]. The changeset > of the new feature release could be found here [2]. Have fun and > don't hesitate to report any problems you encounter at this list or here > [3]. Btw, all sources are under Apache 2 License here [4] and will be > included in the karaf 3 release . It's just out of the ASF repos right > now so that it can be developed/released in faster cycles. BTW, hopefully > this is the last release outside the ASF. I'll start to replace our > current integration tests at Karaf and merge the source into the trunk by > next week... > > > > Special thanks to all of you who have provide feature requests and bug > reports! > > > Kind regards, > Andreas > > > [ 1 ] https://github.com/openengsb/labs- paxexam - karaf /wiki > [2] https://github.com/openengsb/labs-paxexam-karaf/wiki/V0.4.1 > [3] http://issues.openengsb.org/jira/browse/lab > [4] https://github.com/openengsb/labs- paxexam - karaf > > > > > If you reply to this email, your message will be added to the discussion > below: > http://karaf.922171.n3.nabble.com/Release-PaxExam-Karaf-Testframework-0-4-1-tp3513794p3513794.html > To start a new topic under Karaf - User, email [hidden email] > To unsubscribe from Karaf - User, click here . > NAML > > ----- > Mike Van (All links open in new tabs) > Committer - Kalumet > > Atraxia Technologies > > NCI Inc > > Mike Van's Open Source Technologies Blog > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Release-PaxExam-Karaf-Testframework-0-4-1-tp3513794p3513856.html > Sent from the Karaf - User mailing list archive at Nabble.com. > > > > > > > > > If you reply to this email, your message will be added to the discussion > below: > http://karaf.922171.n3.nabble.com/Release-PaxExam-Karaf-Testframework-0-4-1-tp3513794p3513870.html > To start a new topic under Karaf - User, email > [email protected] > To unsubscribe from Karaf - User, click here . > NAML > > ----- > Mike Van (All links open in new tabs) > Committer - Kalumet > > Atraxia Technologies > > NCI Inc > > Mike Van's Open Source Technologies Blog > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Release-PaxExam-Karaf-Testframework-0-4-1-tp3513794p3513877.html > Sent from the Karaf - User mailing list archive at Nabble.com. >
