Configuration properties that can be defined via the CLI, system properties, environment variables, or file.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Robinson 50a603aa4f
updated version
9 months ago
gradle/wrapper Initial split of configuration. 1 year ago
src/dorkbox/config updated version 9 months ago
src9 Initial split of configuration. 1 year ago
.gitignore Initial import 1 year ago
LICENSE changed moshi to compile only 1 year ago
LICENSE.Apachev2 Initial split of configuration. 1 year ago
LICENSE.MIT Initial split of configuration. 1 year ago
README.md updated version 9 months ago
build.gradle.kts updated version 9 months ago
gradle.properties Initial split of configuration. 1 year ago
gradlew Initial split of configuration. 1 year ago
gradlew.bat Initial split of configuration. 1 year ago
settings.gradle.kts Initial split of configuration. 1 year ago

README.md

Configuration properties that can be defined via the CLI, system properties, environment variables, or file.

Dorkbox Github Gitlab

This project provides configuration properties, such that ANYTHING in the config file can ALSO be passed in on the command line or as an env/system property

commandline > system property > environment variable > properties file

Once a property has been defined, it cannot be overloaded again via a different method, as specified in the above hierarchy,

During a save operation, overloaded values will be ignored unless they were manually changed to something different

Additionally, it is possible to set an environment variable names that might conflict with the standard set of names, for example,

PATH
  • The system uses PATH, but if we want to use path for something different, we can via setting the prefix.
  • For example, setting the prefix to CONFIG__ means that for us to set the path property, we set it via
CONFIG__path="/home/blah/whatever"
  • And this way, OUR path does not conflict with the system path.

Maven Info

<dependencies>
    ...
    <dependency>
      <groupId>com.dorkbox</groupId>
      <artifactId>Config</artifactId>
      <version>1.7</version>
    </dependency>
</dependencies>

Gradle Info

dependencies {
    ...
    implementation("com.dorkbox:Config:1.7")
}

License

This project is © 2022 dorkbox llc, and is distributed under the terms of the Apache v2.0 License. See file "LICENSE" for further references.