From ef88f37bbea4049e87e4edf413378bfaa55a9e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 30 Oct 2013 18:16:27 -0700 Subject: [PATCH] add tools pull-deps to cli --- services/src/main/java/io/druid/cli/Main.java | 2 +- .../main/java/io/druid/cli/PullDependencies.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 services/src/main/java/io/druid/cli/PullDependencies.java diff --git a/services/src/main/java/io/druid/cli/Main.java b/services/src/main/java/io/druid/cli/Main.java index 7e529860517..551acea0706 100644 --- a/services/src/main/java/io/druid/cli/Main.java +++ b/services/src/main/java/io/druid/cli/Main.java @@ -59,7 +59,7 @@ public class Main builder.withGroup("tools") .withDescription("Various tools for working with Druid") .withDefaultCommand(Help.class) - .withCommands(ConvertProperties.class, DruidJsonValidator.class); + .withCommands(ConvertProperties.class, DruidJsonValidator.class, PullDependencies.class); builder.withGroup("index") .withDescription("Run indexing for druid") diff --git a/services/src/main/java/io/druid/cli/PullDependencies.java b/services/src/main/java/io/druid/cli/PullDependencies.java new file mode 100644 index 00000000000..cd5ada1941d --- /dev/null +++ b/services/src/main/java/io/druid/cli/PullDependencies.java @@ -0,0 +1,16 @@ +package io.druid.cli; + +import io.airlift.command.Command; + + +@Command( + name = "pull-deps", + description = "Pull down dependencies to the local repository specified by druid.extensions.localRepository" +) +public class PullDependencies implements Runnable +{ + @Override + public void run() { + // dependencies are pulled down as a side-effect of Guice injection + } +}