JavaContents
|
Size: 1708
Comment: download links are dead now
|
← Revision 4 as of 2011-11-09 16:14:06 ⇥
Size: 1465
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| == Current State == ~+Note: Most of this is now unavailable, you currently need to download the script and run it yourself :(+~ |
|
| Line 12: | Line 8: |
| Line 15: | Line 12: |
=== Where === You can download java-Contents.gz files from [[http://people.ubuntu.com/~ttx/java-Contents]] |
|
| Line 27: | Line 20: |
java-Contents.gz files
Why
It's quite difficult to tell which classes are defined in which jar, and in turn to which package this jar may belong.
To solve that issue I propose to create java-Contents.gz files that, for a given release, contains the mapping for all classes published in all packages in Ubuntu (main, universe and multiverse), under this format:
package component jar class
How to use
You usually zgrep for what you want in the file. Examples:
Where is this class defined ?
To see where to find the javax.servlet.http.HttpServlet class, you can use:
$ zgrep -e ' javax.servlet.http.HttpServlet$' intrepid-java-Contents.gz glassfish-javaee universe /usr/share/java/glassfish-javaee-2+b58g.jar javax.servlet.http.HttpServlet glassfishv2 multiverse /usr/share/glassfishv2/lib/javaee.jar javax.servlet.http.HttpServlet libservlet2.3-java main /usr/share/java/servlet-2.3.jar javax.servlet.http.HttpServlet libservlet2.4-java main /usr/share/java/servlet-api-2.4.jar javax.servlet.http.HttpServlet libservlet2.5-java main /usr/share/java/servlet-api-2.5.jar javax.servlet.http.HttpServlet roxen4 universe /usr/share/roxen4/java/classes/servlet.jar javax.servlet.http.HttpServlet
How to recreate
The script used to create the java-Contents.gz file is currently available in a bzr branch at https://code.launchpad.net/~ttx/+junk/generate-java-Contents.
JavaTeam/JavaContents (last edited 2011-11-09 16:14:06 by james-page)