all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: matthew.weaver@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Run etags over java source files packaged inside JARs
Date: Mon, 16 Mar 2015 16:12:26 +0300	[thread overview]
Message-ID: <m2h9tl5bnp.fsf@fastmail.fm> (raw)
In-Reply-To: <fcadc423-103c-45aa-82f1-372329d22a2d@googlegroups.com> (matthew weaver's message of "Thu, 12 Mar 2015 16:50:40 -0700 (PDT)")

On 12/03/2015 16:50 -0700, matthew.weaver@gmail.com wrote:

> In at least one large project, most of the 3rd-party libraries are
> distributed with their (java) source code bundled into jar files. It
> would be convenient if etags could index all that code in place,
> without having to store it uncompressed in the filesystem.
>
> Does etags, or any auxiliary utility, support this? Thanks.

Hi Matthew,

Seems that out-of-the-box, no.

It's rather uncommon to put sources in the same jars as byte-code: at
least it will unnecessarily increase the size of assemblies (like
war-s).

With Maven, sources are usually distributed in arhives besides jars, as
a separate type of the artifact.  IDEs usually process and use them.  I
think that javaimp package [1] could be extended to support browsing the
sources.  It obtains the classpath of the module via `mvn
dependency:build-classpath' command, then it could try the amended jar
filepath to find the sources.

However, I find it more convenient to just download the library sources
from git/whatever, build them to obtain javadocs and navigate both the
sources and docs manually.

But I'd like to hear what others think about that.

As for projects not using a dependency-management system, it'd be rather
boring to set the classpath manually, but it could be supported also
(but what is the general way of finding sources in this case? - a
separate path?)

Filipp

[1] http://elpa.gnu.org/packages/javaimp.html



      reply	other threads:[~2015-03-16 13:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 23:50 Run etags over java source files packaged inside JARs matthew.weaver
2015-03-16 13:12 ` Filipp Gunbin [this message]

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=m2h9tl5bnp.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    --cc=matthew.weaver@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.