Configuration
sdmx-dl CLI is designed to work out-of-the-box but can be configured if needed by using several properties files.
The properties files are just text files that contains a list of key-value pairs.
All these files are named sdmx-dl.properties and are located in 3 different folders which are parsed in a specific order to define a scope:
SYSTEM: the installation folder (where the binary is located)GLOBAL: the user profile folder (%userprofile%on Windows)LOCAL: the execution folder (where the CLI is called)
Each of these scopes overwrites properties defined in the previous scope; for example, properties in execution folder overrides those in user profile folder.
The default values of command options can be overridden in two ways:
- Widely by targeting any command using their option names.
# enable verbose mode on all commands verbose=true # use UNIX new-line type on all commands new-line=UNIX - Narrowly by targeting a specific command using their option names prefixed by the command full path.
# enable verbose mode on status command sdmx-dl.check.status.verbose=true # use UNIX new-line type on status command sdmx-dl.check.status.new-line=UNIX
Execution properties can be customized using Java system property.
There are several types of system properties: some are defined by the platform, others by the libraries.
Using properties files is usually error-prone.
Fortunately, sdmx-dl CLI includes a command to pinpoint the problems: sdmx-dl check properties
Common problems:
| Problem | Cause |
|---|---|
| Property is not available in the output | The property file is either not in the right folder or is misspelled |
| Property doesn’t have the right type | The property name is misspelled |