From otis_gospodnetic@yahoo.com Thu Sep 4 12:35:38 2003 Return-Path: Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 56909 invoked from network); 4 Sep 2003 12:35:38 -0000 Received: from unknown (HELO web12701.mail.yahoo.com) (216.136.173.238) by daedalus.apache.org with SMTP; 4 Sep 2003 12:35:38 -0000 Message-ID: <20030904123530.33776.qmail@web12701.mail.yahoo.com> Received: from [194.152.206.72] by web12701.mail.yahoo.com via HTTP; Thu, 04 Sep 2003 05:35:30 PDT Date: Thu, 4 Sep 2003 05:35:30 -0700 (PDT) From: Otis Gospodnetic Subject: Re: Lucene app to index Java code To: Lucene Users List In-Reply-To: <7A7E7BCF-DECE-11D7-9B3C-000393760B7E@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N What you describe sounds interesting, but I was thinking more along the lines of this: http://www.peerfear.org/rss/permalink/2003/07/23/LuceneForSourceManagement/ An application that I could use to find out whether I already have a 'getStudents' or 'getStudents*' method somewhere in the source code, for instance, before I start writing it. As the code base grows larger, and as the team that works with it becomes bigger, this tools becomes more and more valuable. If this application could also index Javadocs, so that I can search for methods or classes that mention +student* +(database OR db) +update, that would be even better. Has anyone done this? Kevin Burton mentioned something similar to what I described above, at that URL, but it looks like he didn't make his application available. Thanks, Otis --- petite_abeille wrote: > Hi Otis, > > On Thursday, Sep 4, 2003, Otis Gospodnetic wrote: > > > Has anyone written an application that uses Lucene to index Java > code, > > either from the source .java files, or compiled .class files? > > If you are talking about my ultra secret project "Zapata: Coding > Mexican Style", then yes ;) > > But... it uses runtime information to reach its devious ends and is > more like a documentation tool than anything else... > > Anyway, this is how it goes: > > Given a set of binary jar files it builds an object graph of the > bytecode: packages, classes, methods and so on. Complete with > interdependencies and other handy informations. The bytecode is also > run through a decompiler and pretty printed to normalize the source. > Code segments are attached and indexed alongside their owners (class > or > method). All this fully indexed, searchable and cross referenced. > > This is built upon the same engine used by ZOE, so the end result is > very much along the lines of what ZOE does for email, but for code > instead... fun, fun, fun ;) > > Cheers, > > PA. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com