Skip to content

kraken-robotics/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CONFIG

A simple configuration manager

The configuration values are located in two places. A java class containing the configurable values must provide default values. A text configuration file can overload these values. The point of the configuration file is to change the configuration without recompiling.

The configuration file must consist of key = value lines. Commentaries are introduced with the # character. Here is an config file example.

Maven installation

If you want to use this library in one of your maven project, add this to your pom.xml:

  <repositories>
    <repository>
      <id>central</id>
      <url>https://repo1.maven.org/maven2</url>
    </repository>
    <repository>
      <id>github</id>
      <url>https://maven.pkg.github.com/kraken-robotics/*</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

and

<dependency>
    <groupId>pfg.config</groupId>
    <artifactId>config</artifactId>
    <version>1.4</version>
</dependency>

Manual compilation Build Status

You can compile it yourself. You will need a JDK and maven.

$ git clone https://github.com/PFGimenez/config.git --depth 1
$ cd config/core
$ mvn install