frysk.sysroot
Class SysRoot

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

public class SysRoot
extends Object

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


Field Summary
private  File sysRoot
           
 
Constructor Summary
SysRoot(File path)
           
SysRoot(String string)
           
 
Method Summary
private  File findExe(String pathVar, String arg0)
           
 String getLibPathViaSysRoot()
          return a pathname of an executable.
 SysRootFile getPathViaSysRoot(String pathname)
          return a pathname of an executable.
(package private)  SysRootFile getPathViaSysRoot(String pathname, String pathVar)
          return a pathname of an executable in a system root.
 SysRootFile getSourcePathViaSysRoot(File compilationDir, File f)
          return a pathname of an executable's source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sysRoot

private File sysRoot
Constructor Detail

SysRoot

public SysRoot(File path)

SysRoot

public SysRoot(String string)
Method Detail

getPathViaSysRoot

public SysRootFile getPathViaSysRoot(String pathname)
return a pathname of an executable.

Parameters:
pathname - is the executable.
Returns:
this executable's pathname, searched for on $PATH in the special root directory.

getPathViaSysRoot

SysRootFile getPathViaSysRoot(String pathname,
                              String pathVar)
return a pathname of an executable in a system root. Used only for testing.


getSourcePathViaSysRoot

public SysRootFile getSourcePathViaSysRoot(File compilationDir,
                                           File f)
return a pathname of an executable's source.

Parameters:
pathname - is the executable's compilation directory.
file - this executable's source name.
Returns:
the pathname of the executable's source searched for in the special root directory.

getLibPathViaSysRoot

public String getLibPathViaSysRoot()
return a pathname of an executable.

Returns:
this executable's library pathname, in the special root directory.

findExe

private File findExe(String pathVar,
                     String arg0)