From ae5dc1aeba0090422b3be124d1a801cdeab566b2 Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Sun, 14 Oct 2018 10:55:55 -0400 Subject: [PATCH] Move help command to package of defined commands Signed-off-by: Emmanuel Bigeon --- gclc/pom.xml | 14 ++++++++------ .../gclc/command/{ => base}/HelpExecutor.java | 5 ++++- .../java/net/bigeon/gclc/command/package-info.java | 2 +- .../net/bigeon/gclc/ConsoleTestApplication.java | 2 +- .../net/bigeon/gclc/command/HelpExecutorTest.java | 5 +++-- 5 files changed, 17 insertions(+), 11 deletions(-) rename gclc/src/main/java/net/bigeon/gclc/command/{ => base}/HelpExecutor.java (94%) diff --git a/gclc/pom.xml b/gclc/pom.xml index 8352a73..0d49a4b 100644 --- a/gclc/pom.xml +++ b/gclc/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 gclc 2.0.9-SNAPSHOT @@ -47,16 +49,16 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - com.github.sevntu-checkstyle dsm-maven-plugin 2.2.0 + + org.codehaus.mojo + jdepend-maven-plugin + 2.0 + diff --git a/gclc/src/main/java/net/bigeon/gclc/command/HelpExecutor.java b/gclc/src/main/java/net/bigeon/gclc/command/base/HelpExecutor.java similarity index 94% rename from gclc/src/main/java/net/bigeon/gclc/command/HelpExecutor.java rename to gclc/src/main/java/net/bigeon/gclc/command/base/HelpExecutor.java index 8fa26e6..f004ab5 100644 --- a/gclc/src/main/java/net/bigeon/gclc/command/HelpExecutor.java +++ b/gclc/src/main/java/net/bigeon/gclc/command/base/HelpExecutor.java @@ -36,7 +36,7 @@ * gclc:net.bigeon.gclc.command.HelpExecutor.java * Created on: Sep 6, 2014 */ -package net.bigeon.gclc.command; +package net.bigeon.gclc.command.base; /*- * #%L @@ -73,6 +73,9 @@ package net.bigeon.gclc.command; */ import java.io.IOException; +import net.bigeon.gclc.command.Command; +import net.bigeon.gclc.command.ICommand; +import net.bigeon.gclc.command.SubedCommand; import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.CommandRunExceptionType; import net.bigeon.gclc.manager.ConsoleInput; diff --git a/gclc/src/main/java/net/bigeon/gclc/command/package-info.java b/gclc/src/main/java/net/bigeon/gclc/command/package-info.java index 09d6275..32495df 100644 --- a/gclc/src/main/java/net/bigeon/gclc/command/package-info.java +++ b/gclc/src/main/java/net/bigeon/gclc/command/package-info.java @@ -5,7 +5,7 @@ * {@link net.bigeon.gclc.command.ParametrizedCommand} for commands with a * predefined set of flags and option taking a string as value, the * {@link net.bigeon.gclc.command.SubedCommand} for a command that is declined - * in a set of sub commands, the {@link net.bigeon.gclc.command.HelpExecutor} + * in a set of sub commands, the {@link net.bigeon.gclc.command.base.HelpExecutor} * for help display of other commands and the * * @author Emmanuel BIGEON */ diff --git a/gclc/src/test/java/net/bigeon/gclc/ConsoleTestApplication.java b/gclc/src/test/java/net/bigeon/gclc/ConsoleTestApplication.java index d947a70..0d856df 100644 --- a/gclc/src/test/java/net/bigeon/gclc/ConsoleTestApplication.java +++ b/gclc/src/test/java/net/bigeon/gclc/ConsoleTestApplication.java @@ -70,9 +70,9 @@ package net.bigeon.gclc; import java.io.IOException; import net.bigeon.gclc.command.Command; -import net.bigeon.gclc.command.HelpExecutor; import net.bigeon.gclc.command.ICommandProvider; import net.bigeon.gclc.command.base.ExitCommand; +import net.bigeon.gclc.command.base.HelpExecutor; import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.exception.InvalidCommandName; import net.bigeon.gclc.manager.ConsoleInput; diff --git a/gclc/src/test/java/net/bigeon/gclc/command/HelpExecutorTest.java b/gclc/src/test/java/net/bigeon/gclc/command/HelpExecutorTest.java index f5a3237..b5ef157 100644 --- a/gclc/src/test/java/net/bigeon/gclc/command/HelpExecutorTest.java +++ b/gclc/src/test/java/net/bigeon/gclc/command/HelpExecutorTest.java @@ -78,6 +78,7 @@ import java.io.IOException; import org.junit.Test; +import net.bigeon.gclc.command.base.HelpExecutor; import net.bigeon.gclc.command.base.MockCommand; import net.bigeon.gclc.exception.CommandRunException; import net.bigeon.gclc.manager.ConsoleInput; @@ -92,7 +93,7 @@ import net.bigeon.gclc.utils.PipedConsoleOutput; public class HelpExecutorTest { /** Test method for - * {@link net.bigeon.gclc.command.HelpExecutor#execute(ConsoleOutput, ConsoleInput, String...)}. + * {@link net.bigeon.gclc.command.base.HelpExecutor#execute(ConsoleOutput, ConsoleInput, String...)}. * * @throws CommandRunException if the test failed * @throws IOException if the test failed */ @@ -130,7 +131,7 @@ public class HelpExecutorTest { } } - /** Test method for {@link net.bigeon.gclc.command.HelpExecutor#tip()}. + /** Test method for {@link net.bigeon.gclc.command.base.HelpExecutor#tip()}. * * @throws IOException if the test failed */ @Test