Remove FINE logging of what NamedProviders are being used
Add JUnit to sample build files
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
springShellVersion = 1.1.0.BUILD-SNAPSHOT
|
||||
junitVersion = 4.10
|
||||
log4jVersion = 1.2.17
|
||||
version = 1.0.0.RELEASE
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<spring.shell.version>1.1.0.BUILD-SNAPSHOT</spring.shell.version>
|
||||
<jar.mainclass>org.springframework.shell.Bootstrap</jar.mainclass>
|
||||
<log4j.version>1.2.17</log4j.version>
|
||||
<junit.version>4.10</junit.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -28,7 +29,12 @@
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>${log4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit-dep</artifactId>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user