task #8505
closedConfigFileUtil: turn all spring bean methods into not statical methods.
100%
Description
follow up to #8189
in ConfigFileUtil
1. turn all spring bean methods into not statically methods.
2. better naming for getFolderSeperator()
:
CdmUtils.getFolderSeperator differentiates if the code runs from a jar bundle or if it runs from commandline. In the later case the first case you always need "/" as separator while in the later case it is OS dependendend and therefore the test fails.
Distinguishing this is e.g. important when term loading from csv files to distinguish the position of the csv files in the file system. If compiled to a jar you need another folder separator then reading from the ordinary folder on Windows because on Windows File.separator <> "/".
But I agree that we should maybe rename CdmUtils.getFolderSeperator to make clear that it is only for this specific usecase and it is not a general shortcut to replace File.separator
Related issues
Updated by Andreas Kohlbecker over 4 years ago
- Related to bug #8189: Allow configuration of 'user.home' via the spring environment added
Updated by Andreas Kohlbecker over 4 years ago
- Related to feature request #8187: Use Spring Environment instead of custom code in AbstractWebApplicationConfigurer added
Updated by Andreas Kohlbecker over 4 years ago
- Related to task #8506: Remove the UpdatableRoutingDataSource, related classes and configuration added
Updated by Andreas Kohlbecker over 4 years ago
- Related to task #2387: make name and location of ~/.cdmlibrary folder configurable added
Updated by Andreas Kohlbecker over 4 years ago
- Subject changed from ConfigFileUtil: turn all sping bean methods into not statically methods. to ConfigFileUtil: turn all sping bean methods into not statical methods.
- Status changed from New to In Progress
Updated by Andreas Kohlbecker over 4 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|68ea5e65a8f844fef8efbf698f53f4fbfa6367b3.
Updated by Andreas Kohlbecker over 4 years ago
- Subject changed from ConfigFileUtil: turn all sping bean methods into not statical methods. to ConfigFileUtil: turn all spring bean methods into not statical methods.
- % Done changed from 50 to 0
Updated by Andreas Kohlbecker over 4 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
fully solved and working as expected since there are no longer any problems in the dependent products