I will update the examples for Exam 2.2 and Tinybundles 1.0 (both released today).
Until now, have quick look at the examples: https://github.com/ops4j/org.ops4j.pax.tinybundles/blob/master/src/test/java/org/ops4j/pax/tinybundles/Examples.java On Fri, Jul 22, 2011 at 4:53 PM, Rodolfo Barbeiro < [email protected]> wrote: > > Hello, > > How do I add resources to my "tinybundle"? > > I saw the example: > https://github.com/tonit/Learn-PaxExam/blob/master/lesson-cxf/src/test/java/org/ops4j/pax/exam/learn/cxf/CXFLaboratories.java > > > But the example does not work for me because there is no method "with ()" > in bundle pax-tinybundles-1.0.0-SNAPSHOT. > > > provision( bundle( *with()* ) > .set( "Import-Package", "org.apache.cxf.bus.spring,org.slf4j" ) > .set("DynamicImport-Package","*") > .add (DoSomething.class ) > .add( "META-INF/spring/blablub.xml", > getClass().getResource("/org/ops4j/pax/exam/apart/spring.xml") ) > .build() ) > > > > I need to add "spring resources" in my bundle. How do I do this? > > > The description of my bundle was this: > > [Probe ID: 84fe06936889cdc3449e0506d2bd785bbf809384] > [Probe Location: > file:/tmp/Local/Temp/1311344747001-0/tinybundles_84fe06936889cdc3449e0506d2bd785bbf809384.bin] > [Tests: > SIG=[TestAddress:PaxExam-b3806fb1-818c-438e-93f5-33c2e6ac8466 > root:PaxExam-b3806fb1-818c-438e-93f5-33c2e6ac8466] > SIG=[TestAddress:PaxExam-c0e250ca-a4b2-4abe-b083-299413876ab3 > root:PaxExam-c0e250ca-a4b2-4abe-b083-299413876ab3] > SIG=[TestAddress:PaxExam-b71ffbd0-02b5-48c2-a319-778d9acc42bd > root:PaxExam-b71ffbd0-02b5-48c2-a319-778d9acc42bd] > ] > [Headers: > DynamicImport-Package=* > Ignore-Package= > > PaxExam-Executable=PaxExam-b3806fb1-818c-438e-93f5-33c2e6ac8466,PaxExam-c0e250ca-a4b2-4abe-b083-299413876ab3,PaxExam-b71ffbd0-02b5-48c2-a319-778d9acc42bd, > > PaxExam-b3806fb1-818c-438e-93f5-33c2e6ac8466=org.myorg.mybundle.engine.ServiceImpl;start > Built-By=311037 > TinybundlesVersion=pax-tinybundles-1.0.0-SNAPSHOT > Manifest-Version=1.0 > Tool=pax-tinybundles-1.0.0-SNAPSHOT > > PaxExam-b71ffbd0-02b5-48c2-a319-778d9acc42bd=org.myorg.mybundle.engine.ServiceImpl;executeTransaction > > PaxExam-c0e250ca-a4b2-4abe-b083-299413876ab3=org.myorg.mybundle.engine.ServiceImpl;stop > Created-By=pax-tinybundles-1.0.0-SNAPSHOT > ] > > > Regards, Rodolfo Barbeiro > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > > -- Toni Menzel Source <http://tonimenzel.com>
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
