From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20351 invoked by alias); 30 Nov 2006 20:26:00 -0000 Received: (qmail 20344 invoked by uid 22791); 30 Nov 2006 20:25:59 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS,TW_GC X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 30 Nov 2006 20:25:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kAUKPqIf002648 for ; Thu, 30 Nov 2006 15:25:52 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id kAUKPi5K015384; Thu, 30 Nov 2006 15:25:44 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id kAUKPhJY019148; Thu, 30 Nov 2006 15:25:43 -0500 Subject: Re: [fedora-java] src.zip's and rpms in Eclipse From: Ben Konrath To: Andrew Overholt Cc: Anthony Green , Phil Muldoon , fedora-devel-java-list@redhat.com, Frysk Hackers In-Reply-To: <1164818423.30106.9.camel@toxic.toronto.redhat.com> References: <456CDAE1.10006@redhat.com> <1164817735.2943.47.camel@to-dhcp1.toronto.redhat.com> <1164818423.30106.9.camel@toxic.toronto.redhat.com> Content-Type: text/plain Date: Thu, 30 Nov 2006 20:26:00 -0000 Message-Id: <1164918343.3330.128.camel@plug> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 (2.8.1.1-3.fc6) Content-Transfer-Encoding: 7bit Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2006-q4/txt/msg00246.txt.bz2 Hi, On Wed, 2006-11-29 at 11:40 -0500, Andrew Overholt wrote: > On Wed, 2006-29-11 at 08:28 -0800, Anthony Green wrote: > > On Tue, 2006-11-28 at 18:57 -0600, Phil Muldoon wrote: > > > Is > > > there a Wiki page, guide .. or general advice to accomplish this as it > > > is done via the Classpath rpm? > > > > I was under the impression that Eclipse finds the target JDK's src.zip > > based on well known conventions of JDK layout (which we follow in > > java-1.4.2-gcj-compat). As far as I know there's no way to do this for > > random jar files. You need to manually attach the source jar/zip to the > > jar file within Eclipse. > > No, I think it can be done for any jar. Ben will know, though. Not automatically as far as I can tell. Yes, the Java-GNOME jars have a source zips but you have to manually add them. I asked about this when 3.0 came out but didn't hear anything and I briefly looked into to yesterday, but came up with nothing again. I don't have time to investigate it fully, so I think I'll just file a bug see what they say. > > Perhaps it makes sense to add a manifest file tag identifying the > > location of the jar file's source code. Then Eclipse could be taught to > > look for the source itself. Maybe this is something Andrew and team can > > tackle as part of their new Eclipse Linux packaging effort at > > eclipse.org. Yeah, that a good idea and I've wanted this for a while. I was thinking of checking a known location, for example if you add package-version.jar, it would auto-attach package-version-src.zip. This seems to be a convention that eclipse uses. But using a manifest file tag would be more robust. Perhaps supporting both would be a good idea using the manifest as the preferred source. The only concern I have heard about providing these zips on a large scale is that the source code is already provided in the debuginfo packages so making the source zips puts the source code in two places. However, there are a couple of issues with using the debuginfo packages like this: 1) AFAIK not all mirrors carry the debuginfo packages and they're not enabled by default which means it's hard to rely on them 3) debuginfo generation of Eclipse and I think other java packages is broken ATM As far as doing the work, I personally don't have the time to do it, but I'll make sure it gets on a general tasks list on the Eclipse Linux packaging wiki. HTH, Ben