From: Ben Konrath <bkonrath@redhat.com>
To: Nicolas Mailhot <nicolas.mailhot@laposte.net>
Cc: Andrew Overholt <overholt@redhat.com>,
fedora-devel-java-list@redhat.com,
Frysk Hackers <frysk@sourceware.org>
Subject: Re: [fedora-java] src.zip's and rpms in Eclipse
Date: Wed, 06 Dec 2006 05:41:00 -0000 [thread overview]
Message-ID: <1165378680.3004.69.camel@plug> (raw)
In-Reply-To: <1165355834.22822.4.camel@rousalka.dyndns.org>
On Tue, 2006-12-05 at 22:57 +0100, Nicolas Mailhot wrote:
> Le jeudi 30 novembre 2006 à 15:25 -0500, Ben Konrath a écrit :
>
> > 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.
>
> Manifest is not robust WRT file moves. It's redundant when everyone
> follows the same conventions, and a PITA to track/change when you don't.
I was thinking of somehow specifying the absolute path to the source zip
in the manifest. If the source zip is packaged by the same srpm as jar,
then the location should be known and users shouldn't be just randomly
moving files around. But I agree that it would be a bit of a pain to
modify every java RPM to add a path its manifest specifying the location
of the source zip.
> Much better to specify rigid file location & naming conventions, with
> optional override of the root dir via an env var
Seems reasonable. Eclipse tends to use the naming convention I mentioned
in my initial response (above) so this is what I've been using. As an
example, the libgtk-java packages has these files in /usr/share/java/:
gtk2.8-2.8.7.jar
gtk2.8.jar -> gtk2.8-2.8.7.jar
gtk2.8-src-2.8.7.zip
gtk2.8-src.zip -> gtk2.8-src-2.8.7.zip
I think we should keep this naming convention and have eclipse
automatically attach a source zips with the correct name
(<jarname-version>-src.{zip,jar}) if they are in the same directory as
the external jar. If ECLIPSE_JDT_JAR_SRC_ZIP_DIR is set, Eclipse could
try to load a zip/jar of the same name from the directory specified by
this env variable. What do you think?
Ben
next prev parent reply other threads:[~2006-12-06 5:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 0:57 Phil Muldoon
2006-11-29 16:29 ` [fedora-java] " Anthony Green
2006-11-29 16:45 ` Andrew Overholt
2006-11-30 20:26 ` Ben Konrath
2006-12-05 21:57 ` Nicolas Mailhot
2006-12-06 5:41 ` Ben Konrath [this message]
2006-11-29 16:53 ` Phil Muldoon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165378680.3004.69.camel@plug \
--to=bkonrath@redhat.com \
--cc=fedora-devel-java-list@redhat.com \
--cc=frysk@sourceware.org \
--cc=nicolas.mailhot@laposte.net \
--cc=overholt@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).