View on GitHub

PME @ Red Hat

Standardize Your Builds

Configuration Files

Overview

Normally all configuration is passed in via command line properties e.g.

-Dconfiguration-key=value

However, PME also offers the ability to read a local configuration file. This file may be in either YAML, JSON or Java Properties format.

Note: The command line will override any configuration properties unless the property allowConfigFilePrecedence is passed in and set to true.

Yaml

The format is as follows

pme:
    key : value
    key2 : value2
other-configuration:
    ....

Any other configuration sections are ignored by PME.

JSON

The format is as follows

{
    "pme": {
        "key" : "value",
        "key2" : "value2"
        },
    "other-configuration": {
        ....
    }
}

Any other configuration sections are ignored by PME.

Properties

The file should be in a standard java properties file format. Note that certain characters may need to be escaped (See here ).