PathEnv is a simple implementation of a Fantom environment which uses a search path to resolve files.
Slots
- findAllFilesSource
-
override File[] findAllFiles(Uri uri)
Overrides sys::Env.findAllFiles
Search path for all versions of given file.
- findAllPodNamesSource
-
override Str[] findAllPodNames()
Overrides sys::Env.findAllPodNames
Search path for all "lib/fan/*.pod" files.
- findFileSource
-
override File? findFile(Uri uri, Bool checked := true)
Overrides sys::Env.findFile
Search path for given file.
-
const private Log log := Log.get("pathenv")
- makeSource
-
new make()
Constructor initializes the search path using the
FAN_ENV_PATH
environment variable (seesys::Env.vars
). - pathSource
-
const File[] path
Search path of directories in priority order. The last item in the path is always the
sys::Env.homeDir
- tempDirSource
-
override const File tempDir
Overrides sys::Env.tempDir
Temp directory is always under workDir.
- workDirSource
-
override const File workDir
Overrides sys::Env.workDir
Working directory is always first item in path.