The system property appmap.output.directory controls the directory where the Java agent will save AppMaps. (Note that the agent itself does not save remote recordings. That's up to the client that sends the HTTP DELETE /_appmap/record request.)
If appmap.output.directory is set, it's value will be used. If this value doesn't match the setting for appmap_dir in appmap.yml, a warning will be issued.
If it's not set, and appmap.yml contains a setting for appmap_dir, that value will be used.
If it's not set, and appmap.yml does not contain appmap_dir (or doesn't exist), a default value will be chosen. The agent will check the last-modified time on pom.xml and build.gradle and base the setting on whichever is newer. If neither exists, it will default to tmp/appmap.
When creating a default appmap.yml, appmap_dir will be set to appmap.output.directory.
The system property
appmap.output.directory
controls the directory where the Java agent will save AppMaps. (Note that the agent itself does not save remote recordings. That's up to the client that sends the HTTPDELETE /_appmap/record
request.)If
appmap.output.directory
is set, it's value will be used. If this value doesn't match the setting forappmap_dir
inappmap.yml
, a warning will be issued.If it's not set, and
appmap.yml
contains a setting forappmap_dir
, that value will be used.If it's not set, and
appmap.yml
does not containappmap_dir
(or doesn't exist), a default value will be chosen. The agent will check the last-modified time onpom.xml
andbuild.gradle
and base the setting on whichever is newer. If neither exists, it will default totmp/appmap
.When creating a default
appmap.yml
,appmap_dir
will be set toappmap.output.directory
.