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.


Constructor Summary
SysRoot(File path)
           
SysRoot(String string)
           
 
Method Summary
 String getLibPathViaSysRoot()
          return a pathname of an executable.
 SysRootFile getPathViaSysRoot(String pathname)
          return a pathname of an executable.
 SysRootFile getSourcePathViaSysRoot(File compilationDir, File f)
          return a pathname of an executable's source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

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.