frysk.sysroot
Class SysRootCache

java.lang.Object
  extended by frysk.sysroot.SysRootCache

public class SysRootCache
extends Object

Map from a Task's executable to its special root directory.


Field Summary
private static WeakHashMap sysRootMap
           
 
Constructor Summary
SysRootCache()
           
 
Method Summary
static File getSysRoot(String pathname)
          return a sysroot File corresponding to an executable.
static File getSysRoot(Task task)
           
static void setDefaultSysroot(String sysroot)
          set the default sysroot
static void setSysroot(String pathname, String sysroot)
          set the sysroot corresponding to an executable.
static void setSysroot(Task task, String sysroot)
          set the sysroot corresponding to an executable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sysRootMap

private static WeakHashMap sysRootMap
Constructor Detail

SysRootCache

public SysRootCache()
Method Detail

getSysRoot

public static File getSysRoot(String pathname)
return a sysroot File corresponding to an executable.

Parameters:
pathname - is the pathname of the executable.
Returns:
this executable's special root directory.

getSysRoot

public static File getSysRoot(Task task)

setSysroot

public static void setSysroot(String pathname,
                              String sysroot)
set the sysroot corresponding to an executable.

Parameters:
pathname - is the pathname of the executable.
sysroot - is this task's special root directory.

setSysroot

public static void setSysroot(Task task,
                              String sysroot)
set the sysroot corresponding to an executable.

Parameters:
task - is the task corresponding to the executable.
sysroot - is this task's special root directory.

setDefaultSysroot

public static void setDefaultSysroot(String sysroot)
set the default sysroot

Parameters:
sysroot - is the default special root directory.