Project

General

Profile

Actions

task #8505

closed

ConfigFileUtil: turn all spring bean methods into not statical methods.

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

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

100%

Estimated time:
Severity:
normal

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

Related to EDIT - bug #8189: Allow configuration of 'user.home' via the spring environmentClosedAndreas Kohlbecker

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

Actions
Related to EDIT - task #8506: Remove the UpdatableRoutingDataSource, related classes and configurationNewAndreas Müller

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

Actions
Actions #1

Updated by Andreas Kohlbecker over 4 years ago

  • Related to bug #8189: Allow configuration of 'user.home' via the spring environment added
Actions #2

Updated by Andreas Kohlbecker over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Andreas Kohlbecker over 4 years ago

  • Related to feature request #8187: Use Spring Environment instead of custom code in AbstractWebApplicationConfigurer added
Actions #4

Updated by Andreas Kohlbecker over 4 years ago

  • Related to task #8506: Remove the UpdatableRoutingDataSource, related classes and configuration added
Actions #5

Updated by Andreas Kohlbecker over 4 years ago

  • Related to task #2387: make name and location of ~/.cdmlibrary folder configurable added
Actions #6

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
Actions #7

Updated by Andreas Kohlbecker over 4 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 50
Actions #8

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
Actions #9

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

Actions

Also available in: Atom PDF