whyorean/AuroraDispenser

auth file loading broken

Opened this issue · 0 comments

nThe README says:
src/main/resources/config.properties Edit this file to match your liking
but the properties are loaded with:
BufferedReader bufferedReader = new BufferedReader(new FileReader(System.getProperty("credentials")));
so it works with Java specific properties which make this librariy pain in the ass for non java programmer as currently it works only when -Dcredentials=.. command line switch is provided
I've found another config file loaded:
properties.load(getClass().getClassLoader().getSystemResourceAsStream("device-gemini.properties"));
but nothing specific to config.properties and System.getProperty("credentials") returns null