Hi, I have tried many times to use Pax Exam, and always got stuck in its complexity and opacity, this time was no different, hence why I resorted to the crankstart provisioning model. Obviously your mileage varies, but thanks for the pointer. The feature.xml looks extensive at 557 lines compared to the 50 or so far less extensive lines of the provisioning model.
I dont really care if the only way to start an OSGi container is to use feature.xml as long as I can continue to use a simple provisioning model to generate it, ideally not in XML, and ideally able to be minimalist. Best Regards Ian On 4 October 2016 at 10:54, Oliver Lietz <apa...@oliverlietz.de> wrote: > On Tuesday 04 October 2016 10:19:06 Ian Boston wrote: > > Hi, > > Hi Ian, > > > On 3 October 2016 at 11:37, Robert Munteanu <romb...@apache.org> wrote: > > > On Wed, 2016-09-28 at 21:37 +0000, Stefan Seifert wrote: > > > > the launchpad should be split up in separates features/provisioning > > > > fragments to make it possible to easily build a "minimal launchpad" > > > > or "minimal launchpad + X" by selection only some but not all > > > > features. > > > > > > +1, this would be very useful. > > > > The crankstart provisioning model at [1] is a minimal launchpad (24 > > bundles). Doesn't even have a repository. > > In the case of the integration test is started by [2], but could equally > be > > started on the command line. > > Model contents can be found at [3], not all are used. > > > > Is that a starting point for what you were looking for ? > > the split up is already done for Karaf [1] and generated from that are > Options > for Pax Exam[2]. Getting a minimal Sling for Pax Exam is just using > sling(). > As it is in Java, you can assemble different Sling "Launchpads" in the same > module (different IT classes) also. > > Regards, > O. > > [1] https://github.com/apache/sling/blob/trunk/karaf/org. > apache.sling.karaf-features/src/main/feature/feature.xml > [2] > https://github.com/apache/sling/tree/trunk/testing/org. > apache.sling.testing.paxexam > > > Best Regards > > Ian > > > > > > 1 > > https://github.com/apache/sling/blob/trunk/contrib/ > commons/mom/examples/jobs > > /it/src/test/java/org/apache/sling/jobs/it/Models.java#L16 2 > > https://github.com/apache/sling/blob/trunk/contrib/ > commons/mom/examples/jobs > > /it/src/test/java/org/apache/sling/jobs/it/TestSuiteLauncherIT.java#L33 > 3 > > https://github.com/apache/sling/tree/trunk/contrib/ > commons/mom/examples/jobs > > /it/src/test/resources > > > Robert > >