Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E46BBDD5D for ; Mon, 8 Oct 2012 16:54:29 +0000 (UTC) Received: (qmail 42626 invoked by uid 500); 8 Oct 2012 16:54:29 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 42555 invoked by uid 500); 8 Oct 2012 16:54:29 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 42542 invoked by uid 99); 8 Oct 2012 16:54:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 16:54:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.boisvert@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vc0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 16:54:23 +0000 Received: by mail-vc0-f172.google.com with SMTP id fl11so6448949vcb.17 for ; Mon, 08 Oct 2012 09:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=l8t4HquW8Ly6EcHVy0TqzZnMrhWdvlefV13DN8iR3sU=; b=ynujB5pD3iaHTAuOlJIemXs/78cxgxeuiUQ398rYMz8OslcvINmSW4ahYMqYb+IkMK M4dAmeaW1GY01fdRKl3l6RPNlnEQeNZyYR8TEOLjrCh8QYBUgwKMSdMC3wZiX90N0Z2h SJH3QImea52iMVlecgwecpZOjHCYcRWiyToUZ2F97QlLzZ0D4RsxQU63fiQ8EI1s5J9V ad1rtZtm+naJnnUO46KKL882NAFCRFsAX9q5v67H9ZCV2rkaJ69y/+AO4085sAoaO57R JkTdHRlgaZfY1nHo3l3nt7kGFdkYXet7aPY0Z4zDMm+FIZFKVc3vf8sah+z9j/mnMDR+ Szfg== MIME-Version: 1.0 Received: by 10.52.92.11 with SMTP id ci11mr8162648vdb.7.1349715242754; Mon, 08 Oct 2012 09:54:02 -0700 (PDT) Received: by 10.58.74.74 with HTTP; Mon, 8 Oct 2012 09:54:02 -0700 (PDT) In-Reply-To: <201210060324.49487.niklaus.giger@member.fsf.org> References: <201210060012.47795.niklaus.giger@member.fsf.org> <201210060215.24939.niklaus.giger@member.fsf.org> <201210060243.20005.niklaus.giger@member.fsf.org> <201210060324.49487.niklaus.giger@member.fsf.org> Date: Mon, 8 Oct 2012 09:54:02 -0700 Message-ID: Subject: Re: Generated plugin contains files with wrong path (buildr4osgi) From: Alex Boisvert To: Niklaus Giger Cc: users@buildr.apache.org, Antoine Toulme Content-Type: multipart/alternative; boundary=20cf3071ce0a97a16a04cb8f11e6 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071ce0a97a16a04cb8f11e6 Content-Type: text/plain; charset=ISO-8859-1 Antoine, if you have a few cycles today... could you provide your take on this? thanks! alex On Fri, Oct 5, 2012 at 6:24 PM, Niklaus Giger wrote: > ** > > Hi > > > > I think I now the region where bug lies. I think buildr4osgi assumes in > > lib/buildr4osgi/osgi/packaging.rb (around line 280) that the first entry > in the Bundle-ClassPath is a '.'. Which is not always the case in my > projects. > > > > But I don't yet understand why buildr4osgi reads only the first entry and > not more. > > > > Best regards > > > > Niklaus > > > > > > > Hi > > > > > > I'm getting closer the following diff makes the error disapper: > > > > diff --git a/ch.elexis.mail/META-INF/MANIFEST.MF > > > > b/ch.elexis.mail/META-INF/MANIFEST.MF --- > > > > a/ch.elexis.mail/META-INF/MANIFEST.MF > > > > +++ b/ch.elexis.mail/META-INF/MANIFEST.MF > > > > @@ -14,9 +14,9 @@ > > > > > > > > org.eclipse.ui.forms, > > > > ch.rgw.utility, > > > > ch.elexis;bundle-version="2.1.0" > > > > > > > > -Bundle-ClassPath: activation.jar, > > > > +Bundle-ClassPath: ., > > > > > > > > mail.jar, > > > > > > > > - . > > > > + activation.jar > > > > > > > > Export-Package: ch.elexis.mail, > > > > > > > > com.sun.activation.registries, > > > > com.sun.activation.viewers, > > > > > > But running the trace with and without the patch did not show and > > > interesting diff. > > > > > > Best regards > > > > > > Niklaus > > > > > > > Hi > > > > > > > > Not very successful at creating a really smallish project. > > > > > > > > Size is now 4 projects, 5,7 MB java code, 1 extension of mine. Time to > > > > run less than a minute. > > > > > > > > I will try tomorrow or after my vacation to hunt it down even further. > > > > > > > > Best regards > > > > > > > > > Sorry, no idea why that's happening. If you can set up a smallish > > > > > project that I could test on, I'm sure I could track this down. > > > > > > > > > > alex > > > > > > > > > > On Fri, Oct 5, 2012 at 3:12 PM, Niklaus Giger > > > > > > > > > > wrote: > > > > > > Hi > > > > > > > > > > > > I have a fairly large project (150 Eclipse-Plugins) where I have > > > > > > about 3 errors, which all look similars: instead of having a > > > > > > jar-file and some > > > > > > > > > > > > compiled classes the generated package(:plugin) looks like this: > > > > > > > " zip.vim version v25 > > > > > > > " Browsing zipfile > > > > > > > > > > > > > /opt/elexis-problem/elexis-base/ch.elexis.mail/target/ch.elexis.mail- > > > > > > 2. 0. 1 > > > > > > > > > > > > > .20121005.jar " Select a file with cursor and press ENTER > > > > > > > > > > > > > > META-INF/ > > > > > > > META-INF/MANIFEST.MF > > > > > > > META-INF/MANIFEST.MF.orig > > > > > > > activation.jar/ > > > > > > > activation.jar/ch/ > > > > > > > activation.jar/ch/elexis/ > > > > > > > activation.jar/ch/elexis/mail/ > > > > > > > activation.jar/ch/elexis/mail/Activator.class > > > > > > > activation.jar/ch/elexis/mail/Mailbox.class > > > > > > > activation.jar/ch/elexis/mail/Mailer.class > > > > > > > activation.jar/ch/elexis/mail/Messages.class > > > > > > > activation.jar/ch/elexis/mail/PreferenceConstants.class > > > > > > > activation.jar/ch/elexis/mail/Preferences.class > > > > > > > activation.jar/ch/elexis/mail/QFADialog.class > > > > > > > activation.jar/ch/elexis/mail/SMTPAuthenticator.class > > > > > > > activation.jar/ch/elexis/mail/SendQFA.class > > > > > > > ch/ > > > > > > > ch/elexis/ > > > > > > > ch/elexis/mail/ > > > > > > > ch/elexis/mail/messages.properties > > > > > > > ch/elexis/mail/messages_en.properties > > > > > > > ch/elexis/mail/messages_fr.properties > > > > > > > mail.jar > > > > > > > medelexis.xml > > > > > > > plugin.xml > > > > > > > > > > > > The corresponding fragment looks like this in the buildfile: > > > > > > define 'ch.elexis.mail', :base_dir=>'elexis-base/ch.elexis.mail', > > > > > > > > > > > > :version=> '2.0.1' do > > > > > > > > > > > > check package(:plugin), 'plugin should include 2 local jars' do > > > > > > > > > > > > it.should contain('activation.jar') > > > > > > it.should contain('mail.jar') > > > > > > > > > > > > end > > > > > > package(:plugin).include(_('activation.jar')) > > > > > > package(:plugin).include(_('mail.jar')) > > > > > > dependencies << projects('ch.rgw.utility', 'ch.elexis') > > > > > > > > > > > > end > > > > > > > > > > > > If I rename my source folder in order to avoid compilation, the > jars > > > > > > get packed correctly. Any ideas why 4 of about 50 plugin which > > > > > > contain jars don't > > > > > > work? How do I debug this? Using --trace I just see > > > > > > > > > > > > > > > > > > Packaging elexis-ch.elexis.mail-2.0.1.20121005.jar > > > > > > <..> > > > > > > ** Invoke /opt/elexis-problem/elexis- > > > > > > base/ch.elexis.mail/target/ch.elexis.mail-2.0.1.20121005.jar > > > > > > (first_time) Adding medelexis.xml > > > > > > Adding activation.jar > > > > > > Adding mail.jar > > > > > > Adding META-INF/MANIFEST.MF.orig > > > > > > Adding META-INF/MANIFEST.MF > > > > > > Adding META-INF > > > > > > Adding activation.jar/ch > > > > > > Adding activation.jar/ch/elexis > > > > > > Adding activation.jar/ch/elexis/mail > > > > > > Adding activation.jar/ch/elexis/mail/SMTPAuthenticator.class > > > > > > Adding activation.jar/ch/elexis/mail/QFADialog.class > > > > > > <..> > > > > > > > > > > > > Thanks in advance for any advice. > > > > > > > > > > > > Best regards > > > > > > > > > > > > -- > > > > > > Niklaus Giger > > -- > > Niklaus Giger > > Wieshoschet 6 > > CH-8753 Mollis > > +41 (0)55 612 20 54 P > > +41 (0)77 473 02 59 Mobil > --20cf3071ce0a97a16a04cb8f11e6--