Custom .yml file path in embedded mode

I am running ES in embedded mode and giving it a wrong config path
while starting the node; shouldn't the line below fail:

nodeBuilder().loadConfigSettings(false).settings(ImmutableSettings.settingsBuilder().loadFromSource("conf/adasd")).node().start();

loadFromSource(String) expects the "contents" of the file and not a path to
a file. Based on the "content", it tries to determine whether the source is
YAML, JSON or name value pairs (property file content). Your example is
determined to be a property file.

Apparently, your source of 'conf/adasd' is not malformed enough for the
Properties class to load and trigger an exception. If it was malformed
enough, you would see a SettingsException.

-- jim

On Thu, May 26, 2011 at 7:56 PM, Anurag anurag.phadke@gmail.com wrote:

I am running ES in embedded mode and giving it a wrong config path
while starting the node; shouldn't the line below fail:

nodeBuilder().loadConfigSettings(false).settings(ImmutableSettings.settingsBuilder().loadFromSource("conf/adasd")).node().start();