From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: Run etags over java source files packaged inside JARs Date: Mon, 16 Mar 2015 16:12:26 +0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426511578 19257 80.91.229.3 (16 Mar 2015 13:12:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 13:12:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: matthew.weaver@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 14:12:48 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXUp5-00026y-7F for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 14:12:47 +0100 Original-Received: from localhost ([::1]:49225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUp4-0004Oi-7l for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 09:12:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUos-0004Oa-L0 for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 09:12:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXUoo-0008D6-Kh for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 09:12:34 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUoo-0008Cr-Bk for help-gnu-emacs@gnu.org; Mon, 16 Mar 2015 09:12:30 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1550621073 for ; Mon, 16 Mar 2015 09:12:27 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 16 Mar 2015 09:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= x-sasl-enc:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=PvJpBcFsykuV DcnhslzU0qv4l1Y=; b=EAhK0eWo9J5yoAN2Cl5g8xewAn7SrysBTV0bjNx/vBKp QptIAzn8qrZr5jALTdv2W5qm1d+miKlMii24ZsjwOVPVnLQRpnm0Re+VMoA5VghJ dAyM5ZFPbOd0f7eRYXHbyN4gUbOXBd4VvNZwwW1HRx/d7w1fR1bgCt4ZIthuVI4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=PvJpBcFsykuVDcnhslzU0qv4l1Y=; b=ujAeZlFPStfmaRDEXAoQ ZNWqrJQRo0bFIeeh1TEFREKdZE+655PJ8inCk4UcBABlJA26tc1T/e4hJ9U6lQAs lXJUFisus5+bMW+yUqmTmq8urHW+S5F70sNRMPSFRrqMOeZ35hZW1l04T6ThXVll HQkrcRxZv2sePtBJGdPdMAI= X-Sasl-enc: Rrrw5FZPwc7DEAfCSx9YxCy8Nj1aL3GlKnWL0ec7Lmnj 1426511548 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id CBFEDC002AB; Mon, 16 Mar 2015 09:12:27 -0400 (EDT) In-Reply-To: (matthew weaver's message of "Thu, 12 Mar 2015 16:50:40 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103185 Archived-At: 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