Skip to content
/ config Public

Properties parser. Manage multiple environment properties, access System environment variables

License

Notifications You must be signed in to change notification settings

hgo/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config

Manage application configuration in single file with environment prefixes

myapp.conf:

app.name=My App
%test.app.name=My Test App
...

Usage

Properties properties = parsePropertiesFile(FileUtils.get("myapp.conf"));
Properties parsedProps = Config.parse(properties);
assert parsedProps.get("app.name").equals("My App");


/// with env prefix
Properties parsedProps = Config.parse("test",properties);
assert parsedProps.get("app.name").equals("My Test App");

All codes are extracted from Play 1.x library. Actual reference is : https://www.playframework.com/documentation/1.2.4/configuration

About

Properties parser. Manage multiple environment properties, access System environment variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages