globalbioticinteractions / nomer

maps identifiers and names to other identifiers and names
GNU General Public License v3.0
18 stars 3 forks source link

currently default nomer cache dir is ./.nomer (working dir), suggest to use $HOME/.cache/nomer/ instead. #111

Closed jhpoelen closed 1 year ago

jhpoelen commented 1 year ago

Currently nomer uses ./.nomer/ as a place to store offline accessible data. This means that if you chance directory, nomer will download a new copy of whatever resource (e.g., WFO) needs to be cached for offline access.

Many tools use $HOME/.cache/nomer as a place to store settings or local data. With this, you'll re-use already downloaded resources by default, and still have the option to overwrite the settings using properties.

nomer.cache.dir=/some/custom/path

instead, propose to leave properties empty, with the option to explicitly set the value.

nomer.cache.dir=
jhpoelen commented 1 year ago

in next release nomer will use ${java.home}/.cache/nomer as cache location, unless otherwise specified in nomer.cache.dir property.