|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.env.WhichJar
Static worker methods to find version info about jars and classpaths.
| Field Summary | |
protected static java.util.Properties |
jarSizeTable
A Properties block of known officially shipped .jar names/sizes. |
static java.lang.String |
SERVICE_NAME
SERVICE_NAME. |
| Constructor Summary | |
WhichJar()
|
|
| Method Summary | |
static void |
getClasspathInfo(java.util.Hashtable hash,
java.lang.String options)
Generic worker method to print out java.class.path, sun.boot.class.path, and java.ext.dirs. |
static int |
getInfo(java.util.Hashtable hash,
java.io.File jarFile,
java.lang.String options)
Get version information about a specific .jar file. |
static java.lang.String |
getVersion()
Get our file version info. |
static int |
searchClasspaths(java.util.Hashtable hash,
java.lang.String jarName,
java.lang.String options)
Search all applicable classpath-like items for the named jar. |
static int |
searchDir(java.util.Hashtable hash,
java.lang.String dir,
java.lang.String jarName,
java.lang.String options)
Search a single directory for the named jar. |
static int |
searchDirs(java.util.Hashtable hash,
java.lang.String pathName,
java.lang.String jarName,
java.lang.String options)
Search a list of paths for the named jar. |
static int |
searchPath(java.util.Hashtable hash,
java.lang.String pathName,
java.lang.String jarName,
java.lang.String options)
Search a classpath path for the named jar. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String SERVICE_NAME
protected static java.util.Properties jarSizeTable
| Constructor Detail |
public WhichJar()
| Method Detail |
public static void getClasspathInfo(java.util.Hashtable hash,
java.lang.String options)
hash - to put information inoptions - to apply like strict or verbose
public static int searchClasspaths(java.util.Hashtable hash,
java.lang.String jarName,
java.lang.String options)
hash - to put information injarName - to look foroptions - to apply like strict or verbose
public static int searchPath(java.util.Hashtable hash,
java.lang.String pathName,
java.lang.String jarName,
java.lang.String options)
hash - to put information inpathName - to get from System.getProperty()jarName - to look for, case-insensitiveoptions - to apply like strict or verbose
public static int searchDirs(java.util.Hashtable hash,
java.lang.String pathName,
java.lang.String jarName,
java.lang.String options)
hash - to put information inpathName - to get from System.getProperty()jarName - to look for, case-insensitiveoptions - to apply like strict or verbose
public static int searchDir(java.util.Hashtable hash,
java.lang.String dir,
java.lang.String jarName,
java.lang.String options)
hash - to put information indir - name of directoryjarName - to look for, case-insensitiveoptions - to apply like strict or verbose
public static int getInfo(java.util.Hashtable hash,
java.io.File jarFile,
java.lang.String options)
hash - to put information inoptions - to apply like strict or verbose
public static java.lang.String getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||