ignite-1.4 Fixed Visor cmd options.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b8c0b308 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b8c0b308 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b8c0b308 Branch: refs/heads/ignite-1282 Commit: b8c0b308a7f02f0495315e280936f6bacd170e44 Parents: 5cfb6e6 Author: Alexey Kuznetsov <akuznet...@apache.org> Authored: Thu Sep 17 17:17:05 2015 +0700 Committer: Alexey Kuznetsov <akuznet...@apache.org> Committed: Thu Sep 17 17:17:05 2015 +0700 ---------------------------------------------------------------------- .../scala/org/apache/ignite/visor/commands/VisorConsole.scala | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/b8c0b308/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/VisorConsole.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/VisorConsole.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/VisorConsole.scala index 2abe8a7..6d91b05 100644 --- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/VisorConsole.scala +++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/VisorConsole.scala @@ -105,6 +105,12 @@ class VisorConsole { val batchCommand = argValue("e", argLst) cfgFile.foreach(cfg => { + if (cfg.trim.isEmpty) { + visor.warn("Expected path to configuration after \"-cfg\" option.") + + visor.quit() + } + if (batchFile.isDefined || batchCommand.isDefined) { visor.warn("Options can't contains both -cfg and one of -b or -e options.")