type
PathEnv
PathEnv is a simple implementation of a Fantom environment which uses a search path to resolve files.
constructors
make |
Constructor initializes the search path using the |
---|
fields
vars |
Get the environment variables as a case insensitive, immutable map of Str name/value pairs. |
---|
methods
findAllFiles |
Search |
---|---|
findAllPodNames |
Search |
findFile |
Search |
path |
Search path of directories in priority order. |
tempDir |
Temp directory is always under |
workDir |
Working directory is always first item in |
Slot Details
findAllFiles
findAllPodNames
findFile
make
path
src
virtual override File[] path()
Search path of directories in priority order. The last item in the path is always the Env.homeDir
tempDir
vars
src
virtual const override Str:Str vars
Get the environment variables as a case insensitive, immutable map of Str name/value pairs. The environment map is initialized from the following sources from lowest priority to highest priority:
- shell environment variables
- Java system properties (Java VM only obviously)
- props in "fan.props" prefixed with "env."