FpmConfig is gathered from a hierarchy of
fpm.props files. These files are looked for in the following locations:
Note that the config files are additive but the values are not. If all 3 files exist, then all 3 files are merged together, with config values from a more specific file replacing (or overriding) values found in less specific one.
<WORK_DIR> may be specified with the
FPM_ENV_PATH environment variable. This means that ALL the config for FPM may live outside of the Fantom installation. The only FPM file that needs to live in the Fantom installation is the
afFpm.pod file itself.
Config may be removed by specifying an empty string as a value. For example, to remove the eggbox repository:
Read the comments in the actual
fpm.props file itself for more details.
const File baseDir
The directory used to resolve relative files.
const File configFiles
The config files used to generate this class.
A map of named directory repositories. These are essentially just dirs of pods.
Dumps debug output to a string. The string will look similar to:
FPM Environment: Target Pod : afIoc 3.0+ Base Dir : C:\ Fan Home Dir : C:\Apps\fantom-1.0.70 Work Dirs : C:\Repositories\Fantom C:\Apps\fantom-1.0.70 Temp Dir : C:\Repositories\Fantom\temp Config Files : C:\Apps\fantom-1.0.70\etc\afFpm\config.props Dir Repos : workDir = C:\Repositories\Fantom fanHome = C:\Apps\fantom-1.0.70/lib/fan/ Fanr Repos : default = C:\Repositories\Fantom\repo-default eggbox = http://eggbox.fantomfactory.org/fanr/ release = C:\Repositories\Fantom\repo-release repo302 = http://repo.status302.com/fanr/
A map of named fanr repositories, may be local or remote.
const File homeDir
The Fantom installation.
const Str launchPods
A list of libraries used to launch applications
The raw FPM config gleaned from the
configFiles. Does not include fanr credentials.
Returns a list of all repositories. Note that some repositories may point to the same directory / URL.
Repositoryinstance for the named repository.
repoNamemay be either a
const File tempDir
The temp directory.
const File workDirs
A list of working directories. The
workDiras returned by
FpmEnvis is always first item in this list.
homeDiris always the last entry in the list, so it is never empty.