EMA Java - Allow EmaConfig.xml be loaded from jar's resource

Currently, in EMAJ 1.2.0, the EMAConfig.xml location can either be a path to the physical file, or a directory where the file is located. However, in our code, the xml is bundled with the jar as a resource. The current ConfigReader.loadFile(String) function does not work for us because you cannot use File class to represent a resource in the jar file.

Could you make a change in the config reader so that the config file can be a resource in the jar? Something like URL(classpath:/config/blah/EmaConfig.xml)

Thanks!

Best Answer