daikon.dcomp
Class BuildJDK.RtJarFinder

Object
  extended by BuildJDK.RtJarFinder
Enclosing class:
BuildJDK

public static class BuildJDK.RtJarFinder
extends Object

Given an explicit rt.jar filename, or a root JDK or JRE directory, finds the rt.jar file.


Constructor Summary
BuildJDK.RtJarFinder(String arg)
           
 
Method Summary
protected  boolean exists(String libRt)
           
 String findRtJar(String spaceSeparatedJarLocations)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildJDK.RtJarFinder

public BuildJDK.RtJarFinder(String arg)
Parameters:
arg -
Method Detail

findRtJar

public String findRtJar(String spaceSeparatedJarLocations)
Parameters:
spaceSeparatedJarLocations - a list of potential jar filenames to look for, in case arg was a directory. For example, if arg was /usr/bin/jd2sdk, and spaceSeparatedJarLocations was "jre/lib/rt.jar", this could return /usr/bin/jd2sdk/jre/lib/rt.jar, if it existed.

exists

protected boolean exists(String libRt)
Parameters:
libRt -
Returns:
true iff libRt exists in the filesystem.