Add springcli.properties for version labels
[Fixes #53030591] [bs-191] Use filtering in maven buildpull/9/head
parent
c055cf063d
commit
fff2a804bc
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.bootstrap;
|
||||
|
||||
import org.apache.commons.logging.impl.SimpleLog;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class StartUpLoggerInfoTests {
|
||||
|
||||
private StringBuffer output = new StringBuffer();
|
||||
|
||||
private SimpleLog log = new SimpleLog("test") {
|
||||
@Override
|
||||
protected void write(StringBuffer buffer) {
|
||||
StartUpLoggerInfoTests.this.output.append(buffer).append("\n");
|
||||
};
|
||||
};
|
||||
|
||||
@Test
|
||||
public void sourceClassIncluded() {
|
||||
new StartupInfoLogger(getClass()).log(this.log);
|
||||
assertTrue("Wrong output: " + this.output,
|
||||
this.output.toString().contains("Starting " + getClass().getSimpleName()));
|
||||
// System.err.println(this.output);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bootstrapVersionIncluded() {
|
||||
new StartupInfoLogger(getClass()).log(this.log);
|
||||
assertTrue("Wrong output: " + this.output,
|
||||
this.output.toString().contains("Spring Bootstrap v"));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
spring.zero.version: ${project.version}
|
||||
spring.version: ${spring.version}
|
||||
spring.batch.version: ${spring.batch.version}
|
||||
spring.integration.version: ${spring.integration.version}
|
||||
groovy.version: ${groovy.version}
|
||||
jetty.version: ${jetty.version}
|
||||
tomcat.version: ${tomcat.version}
|
@ -1,7 +0,0 @@
|
||||
handlers = java.util.logging.ConsoleHandler
|
||||
.level = INFO
|
||||
|
||||
java.util.logging.ConsoleHandler.level = FINE
|
||||
sun.net.www.protocol.http.HttpURLConnection.level = ALL
|
||||
org.springframework.zero.context.annotation.level = ALL
|
||||
org.springframework.zero.actuate.autoconfigure.level = ALL
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<property name="CONSOLE_LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } [%t] --- %-40.40logger{39} : %m%n%wex"/>
|
||||
|
||||
<conversionRule conversionWord="wex" converterClass="org.springframework.bootstrap.logging.logback.WhitespaceThrowableProxyConverter" />
|
||||
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
|
||||
<!--logger name="org.springframework.zero" level="DEBUG"/>
|
||||
<logger name="org.springframework.security" level="DEBUG"/-->
|
||||
|
||||
</configuration>
|
@ -1,7 +0,0 @@
|
||||
handlers = java.util.logging.ConsoleHandler
|
||||
.level = INFO
|
||||
|
||||
#java.util.logging.ConsoleHandler.level = FINE
|
||||
#sun.net.www.protocol.http.HttpURLConnection.level = ALL
|
||||
#org.springframework.zero.level = ALL
|
||||
#org.springframework.security.level = ALL
|
@ -1,6 +0,0 @@
|
||||
handlers = java.util.logging.ConsoleHandler
|
||||
.level = INFO
|
||||
|
||||
java.util.logging.ConsoleHandler.level = FINE
|
||||
sun.net.www.protocol.http.HttpURLConnection.level = ALL
|
||||
org.springframework.zero.context.annotation.level = ALL
|
Loading…
Reference in New Issue