Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5F82889E for ; Mon, 22 Aug 2011 20:38:51 +0000 (UTC) Received: (qmail 11530 invoked by uid 500); 22 Aug 2011 20:38:51 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 11474 invoked by uid 500); 22 Aug 2011 20:38:50 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 11465 invoked by uid 99); 22 Aug 2011 20:38:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:38:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bcanhome@googlemail.com designates 209.85.161.49 as permitted sender) Received: from [209.85.161.49] (HELO mail-fx0-f49.google.com) (209.85.161.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:38:46 +0000 Received: by fxd20 with SMTP id 20so5234704fxd.22 for ; Mon, 22 Aug 2011 13:38:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=QGKMkhRF309G/bN/dwjo2GrF5BILmKuRQRFMCCz2iM0=; b=XZ9dRynMdbtWXYgvBNfDinOc6ZNJYvlQqixjGsjUogVIXCnYoO7jsye76XklVocEZQ Yxj7i/2VNi88kL2Hvt9HDWFb18o7Qxp+dW6D3Y6/WO/7GL3sTw97NI//Yt2q9Zt1Lke6 EEwT84zanunfMrNHMtOTuAZ0r7il9T73zGyDs= Received: by 10.223.6.91 with SMTP id 27mr4177602fay.145.1314045504268; Mon, 22 Aug 2011 13:38:24 -0700 (PDT) Received: from [192.168.1.50] (dslb-092-075-157-178.pools.arcor-ip.net [92.75.157.178]) by mx.google.com with ESMTPS id e5sm4451999fah.35.2011.08.22.13.38.21 (version=SSLv3 cipher=OTHER); Mon, 22 Aug 2011 13:38:22 -0700 (PDT) Message-ID: <4E52BE3A.4010007@googlemail.com> Date: Mon, 22 Aug 2011 22:38:18 +0200 From: Achim Nierbeck User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: users@felix.apache.org Subject: Re: Install Object as bundle References: <32155585.post@talk.nabble.com> <4E4E6D73.2000800@googlemail.com> <20110819081208.0wzulimwgs8csws8@www.exceter.com> <20110819122301.6p41zoje8o4gksw0@www.exceter.com> <20110819194022.9ihvhuns4k00k88c@www.exceter.com> <20110820090906.fvma7untmo4kkc44@www.exceter.com> <20110820201827.49ye528ggcs880oc@www.exceter.com> <4E5148C3.7080606 @googlemail.com> <20110821141347.hfmea3uxogk80wkc@www.exceter.com> <20110822051820.xt16y18j8cs0048o@www.exceter.com> <20110822084729.gxj4fg3isk440o8o@www.exceter.com> <20110822085455.lgyz4on5z40cog0w@www.exceter.com> In-Reply-To: <20110822085455.lgyz4on5z40cog0w@www.exceter.com> X-Enigmail-Version: 1.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit :D well just get yourself an Pax account and fix those Macro issues :-) I pretty much just cleaned out those macros that didn't work anymore. Looks like the plugin isn't supported anymore in newer versions of confluence :( This is due to the fact that we moved our wiki from self hosted to atlassian keeps us away the hassle of taking care of that part of infrastructure ;) regards, Achim Am 22.08.2011 16:54, schrieb john.dunlap@exceter.com: > > LOL Yeah, I totally walked into that one... > > Quoting Peter Kriens : > >> As this is open source you're now on the hook for documentation ... :-) >> >> Kind regards, >> >> Peter Kriens >> >> On 22 aug 2011, at 16:47, john.dunlap@exceter.com wrote: >> >>> >>> I'd like to apologize to anyone I may have offended with my >>> previous posts. Having reviewed a couple blog posts, PAX Exam >>> appears to be quite powerful. >>> >>> At the risk of sticking my foot in my mouth, yet again, the only >>> thing I can say in my defense is that the OPS4J documentation is >>> spotty at best and their confluence wiki is very broken(macro >>> errors) at the moment, so it's difficult, at least for me, to >>> figure out what each of the PAX tools do or how to use them(hence >>> the blog posts). >>> >>> -John >>> >>> Quoting john.dunlap@exceter.com: >>> >>>> >>>> Bother. That sounds eerily like the junit runner I'm half way through >>>> writing... >>>> >>>> Quoting Achim Nierbeck : >>>> >>>>> well, if you are in need of help, just ask :-) someone out there will >>>>> try to answer. >>>>> >>>>> Taking the example you choose here is a quick (very-quick) help >>>>> line :-) >>>>> >>>>> The @Configure method, it is used to configure your test environment. >>>>> Pax Exam is meant as a "Integration"-Test toolkit for OSGi so what >>>>> you do >>>>> in this method is just barely configuring the run time environment >>>>> of your >>>>> bundle to test. After this setup where you also are able to >>>>> configure different >>>>> osgi containers like felix, equinox knopflerfish .... and >>>>> different versions. >>>>> Your Unit test itself is turned into a Bundle that tests your bundle >>>>> in question. >>>>> Just like a usual Unit-/Integration- Test would do :-) >>>>> >>>>> >>>>> I hope this makes this a bit clearer :-) >>>>> >>>>> regards, Achim >>>>> >>>>> 2011/8/21 : >>>>>> >>>>>> That's fair. I guess I just don't understand what all the other >>>>>> stuff is. >>>>>> Maybe I just haven't looked closely enough. Like I said before, I >>>>>> wasn't >>>>>> trying to be offensive or dismissive in any way. It was just my >>>>>> off the cuff >>>>>> impression. >>>>>> >>>>>> Quoting Achim Nierbeck : >>>>>> >>>>>>> interesting, since I only see "one" extra pax exam annotation, >>>>>>> all others are of junit 4. >>>>>>> >>>>>>> but this is just my 2 cents :-) >>>>>>> >>>>>>> Am 21.08.2011 04:18, schrieb john.dunlap@exceter.com: >>>>>>>> >>>>>>>> >>>>>>>> https://github.com/tonit/Learn-PaxExam/blob/master/lesson-junit/src/test/java/org/ops4j/pax/exam/lesson3/LessonTest.java >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Quoting Toni Menzel : >>>>>>>> >>>>>>>>> Can you be more specific ? Would love to simplify (in your >>>>>>>>> terms) .. >>>>>>>>> >>>>>>>>> Toni >>>>>>>>> >>>>>>>>> On Sat, Aug 20, 2011 at 5:09 PM, wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> I will check it out. I mean no offense. I just know that the >>>>>>>>>> last >>>>>>>>>> time I >>>>>>>>>> checked out Pax Exam the amount of annotations required to run a >>>>>>>>>> test made >>>>>>>>>> my head hurt. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Quoting Matt Madhavan : >>>>>>>>>> >>>>>>>>>> Ornate? Come on man, check it out. I have designed the OSGi >>>>>>>>>> development >>>>>>>>>>> >>>>>>>>>>> standard for my client based on PAX tools! Probably going to >>>>>>>>>>> be. >>>>>>>>>>> One of >>>>>>>>>>> the >>>>>>>>>>> largest OSGi project >>>>>>>>>>> On Aug 19, 2011 8:40 PM, wrote: >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Thanks for the tip! I'll certainly take a look at it but my >>>>>>>>>>>> general >>>>>>>>>>>> impression of OPS4J has been that their stuff(while very >>>>>>>>>>>> cool) tends >>>>>>>>>>>> to be a little too "ornate" for my taste. >>>>>>>>>>>> >>>>>>>>>>>> Cheers! >>>>>>>>>>>> -John >>>>>>>>>>>> >>>>>>>>>>>> Quoting Matt Madhavan : >>>>>>>>>>>> >>>>>>>>>>>> OPS4J PAXTinyBundle Tool might be a good option too! >>>>>>>>>>>>> >>>>>>>>>>>>> On Aug 19, 2011 1:23 PM, wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> That's quite a trick... Thanks! >>>>>>>>>>>>>> >>>>>>>>>>>>>> Quoting chetan mehrotra : >>>>>>>>>>>>>> >>>>>>>>>>>>>> You can also have look at Karaf Spring deployer which >>>>>>>>>>>>>> creates a >>>>>>>>>>>>>> Bundle >>>>>>>>>>>>>>> >>>>>>>>>>>>>> on >>>>>>>>>>> >>>>>>>>>>>> the fly for a give Spring config file >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>> http://svn.apache.org/viewvc/**karaf/trunk/deployer/spring/** >>>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> src/main/java/org/apache/**karaf/deployer/spring/** >>>>>>>>>>> >>>>>>>>>>> SpringTransformer.java?view=**markup >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>>> Chetan Mehrotra >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Fri, Aug 19, 2011 at 7:42 PM, >>>>>>>>>>>>>>> wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Oh cool I was thinking along the right track! I think >>>>>>>>>>>>>>>> I can adapt >>>>>>>>>>>>>>>> this >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> to >>>>>>>>>>>>> >>>>>>>>>>>>>> do what I need. Thanks for your assistance! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> -John >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Quoting Holger Hoffst�tte >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> < >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> holger.hoffstaette@**googlemail.com >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>> >: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On 19.08.2011 15:28, john.dunlap@exceter.com wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Yes, that's exactly what I need to do. Do you have a >>>>>>>>>>>>>>>>> recommended >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> approach? >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Don't know what your service does, but creating a bundle >>>>>>>>>>>>>>>>> on-the-fly >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> is >>>>>>>>>>> >>>>>>>>>>>> quite easy (I was surprised how easy, actually). I have >>>>>>>>>>>> some code but >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> can't post the full version, so I put a sanitized >>>>>>>>>>>>>>>>> snippet here: >>>>>>>>>>>>>>>>> http://pastebin.com/Cqi7QMuJ >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> (it does exactly what I needed, but without a doubt >>>>>>>>>>>>>>>>> Someone >>>>>>>>>>>>>>>>> On The >>>>>>>>>>>>>>>>> Internet will find something Completely Wrong with >>>>>>>>>>>>>>>>> it..caveat >>>>>>>>>>>>>>>>> emptor >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> and >>>>>>>>>>>>> >>>>>>>>>>>>>> all that.) >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> This will create a bundle with the same version/BSN >>>>>>>>>>>>>>>>> root as the >>>>>>>>>>>>>>>>> "prototype" Bundle that you pass in. Take care of >>>>>>>>>>>>>>>>> generating >>>>>>>>>>>>>>>>> unique >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> BSNs. >>>>>>>>>>>>> >>>>>>>>>>>>>> The dynamically generated headers can be anything you >>>>>>>>>>>>>> want; I only >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> needed >>>>>>>>>>>>> >>>>>>>>>>>>>> an empty bundle with no >>>>>>>>>>>>>> exports/imports/services/****Activator >>>>>>>>>>>>>> etc. so >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> this >>>>>>>>>>>>> >>>>>>>>>>>>>> is >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> left as exercise for you. :) >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> hth, >>>>>>>>>>>>>>>>> Holger >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> ------------------------------****----------------------------** >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>> --**--------- >>>>>>>>>>>>> >>>>>>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> users-unsubscribe@felix.**apac**he.org >>>>>>>>>>>>>>>>> < >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>> For additional commands, e-mail: >>>>>>>>>>>>>> users-help@felix.apache.org >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> ------------------------------****----------------------------** >>>>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> --**--------- >>>>>>>>>>>>> >>>>>>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> users-unsubscribe@felix.**apac**he.org >>>>>>>>>>>>>>>> < >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -------- >>>>>>>>>>>>>> "I don't care what you can do. I care what you can >>>>>>>>>>>>>> guarantee." >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> ------------------------------**------------------------------** >>>>>>>>>>>>>> >>>>>>>>>>>>>> --------- >>>>>>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>>>> >>>>>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>>>>> >>>>>>>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> ------------------------------**------------------------------** >>>>>>>>>>>> >>>>>>>>>>>> --------- >>>>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>>>> >>>>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>>>> >>>>>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ------------------------------**------------------------------**--------- >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>> >>>>>>>>>> users-unsubscribe@felix.**apache.org >>>>>>>>>> >>>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Toni Menzel Source >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> --------------------------------------------------------------------- >>>>>>>> >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ----- >>>>>>> >>>>>>> Apache Karaf Committer & PMC >>>>>>> OPS4J Pax Web >>>>>>> Committer >>>>>>> & Project Lead >>>>>>> >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> >>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> *Achim Nierbeck* >>>>> >>>>> >>>>> Apache Karaf Committer & PMC >>>>> OPS4J Pax Web >>>>> Committer & Project Lead >>>>> blog >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>> For additional commands, e-mail: users-help@felix.apache.org >>> >>> >>> >>> >>> -------- >>> "I don't care what you can do. I care what you can guarantee." >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> >> > > > > > -------- > "I don't care what you can do. I care what you can guarantee." > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > -- ----- Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org