diff --git a/samples/helloworld/build.gradle b/samples/helloworld/build.gradle index 7c37f277..fbfd20fe 100644 --- a/samples/helloworld/build.gradle +++ b/samples/helloworld/build.gradle @@ -7,10 +7,12 @@ apply plugin: 'application' repositories { maven { url "http://repo.springsource.org/libs-release" } mavenLocal() + mavenCentral() } dependencies { compile "org.springframework.shell:spring-shell:$springShellVersion" + testCompile "junit:junit:$junitVersion" runtime "log4j:log4j:$log4jVersion" } diff --git a/samples/helloworld/gradle.properties b/samples/helloworld/gradle.properties index 6d9730c7..1b81abf8 100644 --- a/samples/helloworld/gradle.properties +++ b/samples/helloworld/gradle.properties @@ -1,4 +1,5 @@ springShellVersion = 1.1.0.BUILD-SNAPSHOT +junitVersion = 4.10 log4jVersion = 1.2.17 version = 1.0.0.RELEASE diff --git a/samples/helloworld/pom.xml b/samples/helloworld/pom.xml index bc0880cf..46e07be4 100644 --- a/samples/helloworld/pom.xml +++ b/samples/helloworld/pom.xml @@ -14,6 +14,7 @@ 1.1.0.BUILD-SNAPSHOT org.springframework.shell.Bootstrap 1.2.17 + 4.10 @@ -28,7 +29,12 @@ log4j ${log4j.version} - + + junit + junit-dep + ${junit.version} + test + diff --git a/src/main/java/org/springframework/shell/core/JLineShellComponent.java b/src/main/java/org/springframework/shell/core/JLineShellComponent.java index f3107bb4..7296a720 100644 --- a/src/main/java/org/springframework/shell/core/JLineShellComponent.java +++ b/src/main/java/org/springframework/shell/core/JLineShellComponent.java @@ -191,7 +191,6 @@ public class JLineShellComponent extends JLineShell implements SmartLifecycle, A */ protected String getHistoryFileName() { HistoryFileNameProvider historyFileNameProvider = getHighestPriorityProvider(HistoryFileNameProvider.class); - this.logger.log(Level.FINE, "Using HistoryFileName Provider Class " + historyFileNameProvider.getClass()); String providerHistoryFileName = historyFileNameProvider.getHistoryFileName(); if (providerHistoryFileName != null) { return providerHistoryFileName; @@ -208,7 +207,6 @@ public class JLineShellComponent extends JLineShell implements SmartLifecycle, A */ protected String getPromptText() { PromptProvider promptProvider = getHighestPriorityProvider(PromptProvider.class); - this.logger.log(Level.FINE, "Using Prompt Provider Class " + promptProvider.getClass()); String providerPromptText = promptProvider.getPrompt(); if (providerPromptText != null) { return providerPromptText; @@ -228,7 +226,6 @@ public class JLineShellComponent extends JLineShell implements SmartLifecycle, A private String[] getBannerText() { String[] bannerText = new String[4]; BannerProvider provider = getHighestPriorityProvider(BannerProvider.class); - this.logger.log(Level.FINE, "Using BannerProvider class " + provider.getClass()); bannerText[0] = provider.getBanner(); bannerText[1] = provider.getWelcomeMessage(); bannerText[2] = provider.getVersion();