I have one application in java and I use the XERO invoicing gateway (https://xero.com), in the next version:
<dependency>
<groupId>com.github.xeroapi</groupId>
<artifactId>xero-java</artifactId>
<version>2.1.3</version>
</dependency>
To configure the private application in xerp, I use the code:
try {
Config config = JsonConfig.getInstance();
System.out.println("Your user agent is: " + config.getUserAgent());
} catch(Exception e) {
System.out.println(e.getMessage());
}
(available in https://github.com/XeroAPI/Xero-Java)
My question is: is it possible to specific the absolute path to configuration file (config.json
) ?
Thanks all