Project

General

Profile

Actions

bug #8189

closed

Allow configuration of 'user.home' via the spring environment

Added by Andreas Kohlbecker about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
blocker
Found in Version:
Tags:

Description

By now it is only possible to configure the ${user.home} via the system properties. That means the only option to set the user.home variable is via the jvm command argument:

-Duser.home=/home/user/

The ${user.home} is crucial since it determines the location of the .cdmLibrary folder.

In end to end integration test (#8187) this is a big caveat since it requires the tests to be run with the correct -Duser.home argument to. Which would be the source of a lot of errors an confusion.

Therefore I suggest to let CdmUtils use the spring environment to determine the ${user.home} variable, this would be fully compatible with the current implementation but would also allow for more flexibility as it is needed in test contexts.


Related issues

Related to EDIT - feature request #8187: Use Spring Environment instead of custom code in AbstractWebApplicationConfigurerNewAndreas Kohlbecker

Actions
Related to EDIT - task #8505: ConfigFileUtil: turn all spring bean methods into not statical methods.ClosedAndreas Kohlbecker

Actions
Related to EDIT - task #2387: make name and location of ~/.cdmlibrary folder configurableNewAndreas Müller

Actions
Related to EDIT - task #8513: CdmUtils: remove MUST_EXIST_FILE and getResourceFolderSeperator()ClosedAndreas Kohlbecker

Actions
Actions

Also available in: Atom PDF