Skip to content

Instantly share code, notes, and snippets.

View snicoll's full-sized avatar
🍃
👨‍💻

Stéphane Nicoll snicoll

🍃
👨‍💻
View GitHub Profile
STATUS | wrapper | 2013/08/07 09:27:24 | --> Wrapper Started as Daemon
STATUS | wrapper | 2013/08/07 09:27:24 | Launching a JVM...
INFO | jvm 1 | 2013/08/07 09:27:24 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2013/08/07 09:27:24 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
INFO | jvm 1 | 2013/08/07 09:27:24 |
INFO | jvm 1 | 2013/08/07 09:27:24 | 2013-08-07 09:27:24.891:INFO:oejs.Server:jetty-7.6.11.v20130520
2013.08.07 09:27:26 INFO o.s.s.p.ServerImpl Sonar Server / 3.6.2 / f96da5480d24468e23124b85baedacd757b072f1
2013.08.07 09:27:26 INFO o.s.c.p.Database Create JDBC datasource for jdbc:postgresql://localhost/sonar
2013.08.07 09:27:27 INFO o.s.s.p.DatabaseServerCompatibility Database must be upgraded. Please browse /setup
2013.08.07 09:27:27 INFO o.s.s.p.DefaultServerFileSystem Sonar home: /home/sonar/dist/sonar-3.6.2
:spring-core:compileJava
[ant:animalSniffer] Undefined reference: java/util/GregorianCalendar.from(Ljava/time/ZonedDateTime;)Ljava/util/GregorianCalendar; in /Users/snicoll/workspace/pivotal/spring-framework/spring-core/build/classes/main/org/springframework/core/convert/support/ZonedDateTimeToCalendarConverter.class
[ant:animalSniffer] Undefined reference: java/time/ZonedDateTime in /Users/snicoll/workspace/pivotal/spring-framework/spring-core/build/classes/main/org/springframework/core/convert/support/ZonedDateTimeToCalendarConverter.class
[ant:animalSniffer] Undefined reference: java/util/TimeZone.getTimeZone(Ljava/time/ZoneId;)Ljava/util/TimeZone; in /Users/snicoll/workspace/pivotal/spring-framework/spring-core/build/classes/main/org/springframework/core/convert/support/ZoneIdToTimeZoneConverter.class
[ant:animalSniffer] Undefined reference: java/time/ZoneId in /Users/snicoll/workspace/pivotal/spring-framework/spring-core/build/classes/main/org/springframework/core/convert/support/ZoneIdToTimeZoneConverte
diff --git a/build.gradle b/build.gradle
index 2481d75..9091eef 100644
--- a/build.gradle
+++ b/build.gradle
@@ -37,6 +37,11 @@ configure(allprojects) { project ->
targetCompatibility=1.7
}
+ configurations {
+ animalSniffer
package org.springframework.web.servlet.mvc.method.annotation;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.annotation.Bean;
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="apc" class="org.springframework.aop.framework.autoproxy.InfrastructureAdvisorAutoProxyCreator"/>
<bean id="annotationSource" class="org.springframework.cache.jcache.interceptor.DefaultJCacheOperationSource">
<property name="cacheManager" ref="cacheManager"/>
package org.springframework.cache.jcache.config;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
/**
*
* @author Stephane Nicoll
*/
public class JCacheFullConfigTests extends AbstractJCacheAnnotationTests {

UrlPathHelper usage in SPR

OK:

  • PathExtensionContentNegotiationStrategy sets the urlDecode to false
  • WebAsyncManager, DispatcherServlet and NoSuchRequestHandlingMethodException use it only for logging purposes (the latter in a weird way)

Candidate:

@EnableJms
@Configuration
static class EnableJmsConfig {
@Bean
public JmsListenerContainerFactory defaultJmsMJmsListenerContainerFactory() {
DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory();
factory.setConnectionFactory(testConnectionFactory());
factory.setDestinationResolver(testDestinationResolver());
factory.setMessageConverter(testMessageConverter());
@EnableJms
@Configuration
static class EnableJmsConfig {
@Bean
public JmsListenerContainerTestFactory defaultJmsListenerContainerFactory() {
return new JmsListenerContainerTestFactory("default");
}
@Bean
@Configuration
@Import(BootstrapHornetQConfig.class)
@EnableJms
static class Config {
@Bean
public DemoService echoService() {
return new DemoService();
}