Rename spring-boot-developer-tools -> devtools

Fixes gh-3099
pull/3122/head
Phillip Webb 10 years ago
parent 683c19ee8b
commit 983484f429

@ -84,7 +84,7 @@
<module>spring-boot</module> <module>spring-boot</module>
<module>spring-boot-autoconfigure</module> <module>spring-boot-autoconfigure</module>
<module>spring-boot-actuator</module> <module>spring-boot-actuator</module>
<module>spring-boot-developer-tools</module> <module>spring-boot-devtools</module>
<module>spring-boot-docs</module> <module>spring-boot-docs</module>
<module>spring-boot-starters</module> <module>spring-boot-starters</module>
<module>spring-boot-cli</module> <module>spring-boot-cli</module>

@ -186,7 +186,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-developer-tools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<version>1.3.0.BUILD-SNAPSHOT</version> <version>1.3.0.BUILD-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>

@ -1,21 +0,0 @@
/*
* Copyright 2012-2015 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.
*/
/**
* Auto-configuration for {@code spring-boot-developer-tools}.
*/
package org.springframework.boot.developertools.autoconfigure;

@ -1,12 +0,0 @@
# Application Initializers
org.springframework.context.ApplicationContextInitializer=\
org.springframework.boot.developertools.restart.RestartScopeInitializer
# Application Listeners
org.springframework.context.ApplicationListener=\
org.springframework.boot.developertools.restart.RestartApplicationListener
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.developertools.autoconfigure.LocalDeveloperToolsAutoConfiguration,\
org.springframework.boot.developertools.autoconfigure.RemoteDeveloperToolsAutoConfiguration

@ -8,7 +8,7 @@
<version>1.3.0.BUILD-SNAPSHOT</version> <version>1.3.0.BUILD-SNAPSHOT</version>
<relativePath>../spring-boot-parent</relativePath> <relativePath>../spring-boot-parent</relativePath>
</parent> </parent>
<artifactId>spring-boot-developer-tools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<name>Spring Boot Developer Tools</name> <name>Spring Boot Developer Tools</name>
<description>Spring Boot Developer Tools</description> <description>Spring Boot Developer Tools</description>
<url>http://projects.spring.io/spring-boot/</url> <url>http://projects.spring.io/spring-boot/</url>
@ -74,17 +74,4 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<ignores>
<ignore>org.springframework.boot.developertools.tunnel.server.RemoteDebugPortProvider</ignore>
</ignores>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools; package org.springframework.boot.devtools;
import org.springframework.boot.Banner; import org.springframework.boot.Banner;
import org.springframework.boot.ResourceBanner; import org.springframework.boot.ResourceBanner;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.developertools.remote.client.RemoteClientConfiguration; import org.springframework.boot.devtools.remote.client.RemoteClientConfiguration;
import org.springframework.boot.developertools.restart.RestartInitializer; import org.springframework.boot.devtools.restart.RestartInitializer;
import org.springframework.boot.developertools.restart.Restarter; import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
/** /**

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools; package org.springframework.boot.devtools;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
@ -24,8 +24,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
*/ */
@ConfigurationProperties(prefix = "spring.developertools") @ConfigurationProperties(prefix = "spring.devtools")
public class DeveloperToolsProperties { public class DevToolsProperties {
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/resources/**,resource/**,static/**,public/**,templates/**"; private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/resources/**,resource/**,static/**,public/**,templates/**";
@ -33,7 +33,7 @@ public class DeveloperToolsProperties {
private Livereload livereload = new Livereload(); private Livereload livereload = new Livereload();
private RemoteDeveloperToolsProperties remote = new RemoteDeveloperToolsProperties(); private RemoteDevToolsProperties remote = new RemoteDevToolsProperties();
public Restart getRestart() { public Restart getRestart() {
return this.restart; return this.restart;
@ -43,7 +43,7 @@ public class DeveloperToolsProperties {
return this.livereload; return this.livereload;
} }
public RemoteDeveloperToolsProperties getRemote() { public RemoteDevToolsProperties getRemote() {
return this.remote; return this.remote;
} }

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
@ -30,12 +30,12 @@ import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.PropertySource; import org.springframework.core.env.PropertySource;
/** /**
* {@link BeanFactoryPostProcessor} to add properties that make sense when working * {@link BeanFactoryPostProcessor} to add properties that make sense when working at
* locally. * development time.
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
class LocalDeveloperPropertyDefaultsPostProcessor implements BeanFactoryPostProcessor, class DevToolsPropertyDefaultsPostProcessor implements BeanFactoryPostProcessor,
EnvironmentAware { EnvironmentAware {
private static final Map<String, Object> PROPERTIES; private static final Map<String, Object> PROPERTIES;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import java.net.URL; import java.net.URL;
@ -23,14 +23,14 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.developertools.classpath.ClassPathChangedEvent; import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
import org.springframework.boot.developertools.classpath.ClassPathFileSystemWatcher; import org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher;
import org.springframework.boot.developertools.classpath.ClassPathRestartStrategy; import org.springframework.boot.devtools.classpath.ClassPathRestartStrategy;
import org.springframework.boot.developertools.classpath.PatternClassPathRestartStrategy; import org.springframework.boot.devtools.classpath.PatternClassPathRestartStrategy;
import org.springframework.boot.developertools.livereload.LiveReloadServer; import org.springframework.boot.devtools.livereload.LiveReloadServer;
import org.springframework.boot.developertools.restart.ConditionalOnInitializedRestarter; import org.springframework.boot.devtools.restart.ConditionalOnInitializedRestarter;
import org.springframework.boot.developertools.restart.RestartScope; import org.springframework.boot.devtools.restart.RestartScope;
import org.springframework.boot.developertools.restart.Restarter; import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.ContextRefreshedEvent;
@ -44,25 +44,25 @@ import org.springframework.context.event.EventListener;
*/ */
@Configuration @Configuration
@ConditionalOnInitializedRestarter @ConditionalOnInitializedRestarter
@EnableConfigurationProperties(DeveloperToolsProperties.class) @EnableConfigurationProperties(DevToolsProperties.class)
public class LocalDeveloperToolsAutoConfiguration { public class LocalDevToolsAutoConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Bean @Bean
public static LocalDeveloperPropertyDefaultsPostProcessor localDeveloperPropertyDefaultsPostProcessor() { public static DevToolsPropertyDefaultsPostProcessor devToolsPropertyDefaultsPostProcessor() {
return new LocalDeveloperPropertyDefaultsPostProcessor(); return new DevToolsPropertyDefaultsPostProcessor();
} }
/** /**
* Local LiveReload configuration. * Local LiveReload configuration.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.livereload", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.livereload", name = "enabled", matchIfMissing = true)
static class LiveReloadConfiguration { static class LiveReloadConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Autowired(required = false) @Autowired(required = false)
private LiveReloadServer liveReloadServer; private LiveReloadServer liveReloadServer;
@ -97,11 +97,11 @@ public class LocalDeveloperToolsAutoConfiguration {
/** /**
* Local Restart Configuration. * Local Restart Configuration.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.restart", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.restart", name = "enabled", matchIfMissing = true)
static class RestartConfiguration { static class RestartConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.livereload.LiveReloadServer; import org.springframework.boot.devtools.livereload.LiveReloadServer;
/** /**
* Manages an optional {@link LiveReloadServer}. The {@link LiveReloadServer} may * Manages an optional {@link LiveReloadServer}. The {@link LiveReloadServer} may

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import java.util.Collection; import java.util.Collection;
@ -29,22 +29,22 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.developertools.remote.server.AccessManager; import org.springframework.boot.devtools.remote.server.AccessManager;
import org.springframework.boot.developertools.remote.server.Dispatcher; import org.springframework.boot.devtools.remote.server.Dispatcher;
import org.springframework.boot.developertools.remote.server.DispatcherFilter; import org.springframework.boot.devtools.remote.server.DispatcherFilter;
import org.springframework.boot.developertools.remote.server.Handler; import org.springframework.boot.devtools.remote.server.Handler;
import org.springframework.boot.developertools.remote.server.HandlerMapper; import org.springframework.boot.devtools.remote.server.HandlerMapper;
import org.springframework.boot.developertools.remote.server.HttpHeaderAccessManager; import org.springframework.boot.devtools.remote.server.HttpHeaderAccessManager;
import org.springframework.boot.developertools.remote.server.HttpStatusHandler; import org.springframework.boot.devtools.remote.server.HttpStatusHandler;
import org.springframework.boot.developertools.remote.server.UrlHandlerMapper; import org.springframework.boot.devtools.remote.server.UrlHandlerMapper;
import org.springframework.boot.developertools.restart.server.DefaultSourceFolderUrlFilter; import org.springframework.boot.devtools.restart.server.DefaultSourceFolderUrlFilter;
import org.springframework.boot.developertools.restart.server.HttpRestartServer; import org.springframework.boot.devtools.restart.server.HttpRestartServer;
import org.springframework.boot.developertools.restart.server.HttpRestartServerHandler; import org.springframework.boot.devtools.restart.server.HttpRestartServerHandler;
import org.springframework.boot.developertools.restart.server.SourceFolderUrlFilter; import org.springframework.boot.devtools.restart.server.SourceFolderUrlFilter;
import org.springframework.boot.developertools.tunnel.server.HttpTunnelServer; import org.springframework.boot.devtools.tunnel.server.HttpTunnelServer;
import org.springframework.boot.developertools.tunnel.server.HttpTunnelServerHandler; import org.springframework.boot.devtools.tunnel.server.HttpTunnelServerHandler;
import org.springframework.boot.developertools.tunnel.server.RemoteDebugPortProvider; import org.springframework.boot.devtools.tunnel.server.RemoteDebugPortProvider;
import org.springframework.boot.developertools.tunnel.server.SocketTargetServerConnection; import org.springframework.boot.devtools.tunnel.server.SocketTargetServerConnection;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
@ -57,35 +57,35 @@ import org.springframework.http.server.ServerHttpRequest;
* @since 1.3.0 * @since 1.3.0
*/ */
@Configuration @Configuration
@ConditionalOnProperty(prefix = "spring.developertools.remote", name = "secret") @ConditionalOnProperty(prefix = "spring.devtools.remote", name = "secret")
@ConditionalOnClass({ Filter.class, ServerHttpRequest.class }) @ConditionalOnClass({ Filter.class, ServerHttpRequest.class })
@EnableConfigurationProperties(DeveloperToolsProperties.class) @EnableConfigurationProperties(DevToolsProperties.class)
public class RemoteDeveloperToolsAutoConfiguration { public class RemoteDevToolsAutoConfiguration {
private static final Log logger = LogFactory private static final Log logger = LogFactory
.getLog(RemoteDeveloperToolsAutoConfiguration.class); .getLog(RemoteDevToolsAutoConfiguration.class);
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
public AccessManager remoteDeveloperToolsAccessManager() { public AccessManager remoteDevToolsAccessManager() {
RemoteDeveloperToolsProperties remoteProperties = this.properties.getRemote(); RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
return new HttpHeaderAccessManager(remoteProperties.getSecretHeaderName(), return new HttpHeaderAccessManager(remoteProperties.getSecretHeaderName(),
remoteProperties.getSecret()); remoteProperties.getSecret());
} }
@Bean @Bean
public HandlerMapper remoteDeveloperToolsHealthCheckHandlerMapper() { public HandlerMapper remoteDevToolsHealthCheckHandlerMapper() {
Handler handler = new HttpStatusHandler(); Handler handler = new HttpStatusHandler();
return new UrlHandlerMapper(this.properties.getRemote().getContextPath(), handler); return new UrlHandlerMapper(this.properties.getRemote().getContextPath(), handler);
} }
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
public DispatcherFilter remoteDeveloperToolsDispatcherFilter( public DispatcherFilter remoteDevToolsDispatcherFilter(AccessManager accessManager,
AccessManager accessManager, Collection<HandlerMapper> mappers) { Collection<HandlerMapper> mappers) {
Dispatcher dispatcher = new Dispatcher(accessManager, mappers); Dispatcher dispatcher = new Dispatcher(accessManager, mappers);
return new DispatcherFilter(dispatcher); return new DispatcherFilter(dispatcher);
} }
@ -93,11 +93,11 @@ public class RemoteDeveloperToolsAutoConfiguration {
/** /**
* Configuration for remote update and restarts. * Configuration for remote update and restarts.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.remote.restart", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.remote.restart", name = "enabled", matchIfMissing = true)
static class RemoteRestartConfiguration { static class RemoteRestartConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Bean @Bean
@ConditionalOnMissingBean @ConditionalOnMissingBean
@ -126,11 +126,11 @@ public class RemoteDeveloperToolsAutoConfiguration {
/** /**
* Configuration for remote debug HTTP tunneling. * Configuration for remote debug HTTP tunneling.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.remote.debug", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.remote.debug", name = "enabled", matchIfMissing = true)
static class RemoteDebugTunnelConfiguration { static class RemoteDebugTunnelConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Bean @Bean
@ConditionalOnMissingBean(name = "remoteDebugHanderMapper") @ConditionalOnMissingBean(name = "remoteDebugHanderMapper")

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
/** /**
* Configuration properties for remote Spring Boot applications. * Configuration properties for remote Spring Boot applications.
@ -22,9 +22,9 @@ package org.springframework.boot.developertools.autoconfigure;
* @author Phillip Webb * @author Phillip Webb
* @author Rob Winch * @author Rob Winch
* @since 1.3.0 * @since 1.3.0
* @see DeveloperToolsProperties * @see DevToolsProperties
*/ */
public class RemoteDeveloperToolsProperties { public class RemoteDevToolsProperties {
public static final String DEFAULT_CONTEXT_PATH = "/.~~spring-boot!~"; public static final String DEFAULT_CONTEXT_PATH = "/.~~spring-boot!~";

@ -0,0 +1,21 @@
/*
* Copyright 2012-2015 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.
*/
/**
* Auto-configuration for {@code spring-boot-devtools}.
*/
package org.springframework.boot.devtools.autoconfigure;

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;
import java.util.Set; import java.util.Set;
import org.springframework.boot.developertools.filewatch.ChangedFiles; import org.springframework.boot.devtools.filewatch.ChangedFiles;
import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationEvent;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;
import java.util.Set; import java.util.Set;
import org.springframework.boot.developertools.filewatch.ChangedFile; import org.springframework.boot.devtools.filewatch.ChangedFile;
import org.springframework.boot.developertools.filewatch.ChangedFiles; import org.springframework.boot.devtools.filewatch.ChangedFiles;
import org.springframework.boot.developertools.filewatch.FileChangeListener; import org.springframework.boot.devtools.filewatch.FileChangeListener;
import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher; import org.springframework.context.ApplicationEventPublisher;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;
import java.net.URL; import java.net.URL;
@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.developertools.filewatch.FileSystemWatcher; import org.springframework.boot.devtools.filewatch.FileSystemWatcher;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationContextAware;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;
import org.springframework.boot.developertools.filewatch.ChangedFile; import org.springframework.boot.devtools.filewatch.ChangedFile;
/** /**
* Strategy interface used to determine when a changed classpath file should trigger a * Strategy interface used to determine when a changed classpath file should trigger a

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;
import org.springframework.boot.developertools.filewatch.ChangedFile; import org.springframework.boot.devtools.filewatch.ChangedFile;
import org.springframework.util.AntPathMatcher; import org.springframework.util.AntPathMatcher;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;

@ -17,5 +17,5 @@
/** /**
* Support for classpath monitoring * Support for classpath monitoring
*/ */
package org.springframework.boot.developertools.classpath; package org.springframework.boot.devtools.classpath;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.io.File; import java.io.File;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.io.File; import java.io.File;
import java.util.Collections; import java.util.Collections;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.util.Set; import java.util.Set;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.io.File; import java.io.File;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;
import java.io.File; import java.io.File;
import java.util.Arrays; import java.util.Arrays;
@ -26,7 +26,7 @@ import java.util.LinkedHashSet;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import org.springframework.boot.developertools.filewatch.ChangedFile.Type; import org.springframework.boot.devtools.filewatch.ChangedFile.Type;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**

@ -17,5 +17,5 @@
/** /**
* Class to watch the local filesystem for changes. * Class to watch the local filesystem for changes.
*/ */
package org.springframework.boot.developertools.filewatch; package org.springframework.boot.devtools.filewatch;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.nio.charset.Charset; import java.nio.charset.Charset;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.FilterInputStream; import java.io.FilterInputStream;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.FilterOutputStream; import java.io.FilterOutputStream;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

@ -17,5 +17,5 @@
/** /**
* Support for the livereload protocol. * Support for the livereload protocol.
*/ */
package org.springframework.boot.developertools.livereload; package org.springframework.boot.devtools.livereload;

@ -17,5 +17,5 @@
/** /**
* Spring Boot developer tools. * Spring Boot developer tools.
*/ */
package org.springframework.boot.developertools; package org.springframework.boot.devtools;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
@ -29,12 +29,12 @@ import java.util.Map;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.classpath.ClassPathChangedEvent; import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
import org.springframework.boot.developertools.filewatch.ChangedFile; import org.springframework.boot.devtools.filewatch.ChangedFile;
import org.springframework.boot.developertools.filewatch.ChangedFiles; import org.springframework.boot.devtools.filewatch.ChangedFiles;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFile; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFile.Kind; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFiles; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
import org.springframework.context.ApplicationListener; import org.springframework.context.ApplicationListener;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod; import org.springframework.http.HttpMethod;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
@ -22,7 +22,7 @@ import java.net.URISyntaxException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.autoconfigure.OptionalLiveReloadServer; import org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer;
import org.springframework.http.HttpMethod; import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpRequest; import org.springframework.http.client.ClientHttpRequest;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import java.io.IOException; import java.io.IOException;

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import javax.net.ServerSocketFactory; import javax.net.ServerSocketFactory;
import org.springframework.boot.autoconfigure.condition.ConditionOutcome; import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
import org.springframework.boot.autoconfigure.condition.SpringBootCondition; import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
import org.springframework.boot.bind.RelaxedPropertyResolver; import org.springframework.boot.bind.RelaxedPropertyResolver;
import org.springframework.boot.developertools.autoconfigure.RemoteDeveloperToolsProperties; import org.springframework.boot.devtools.autoconfigure.RemoteDevToolsProperties;
import org.springframework.context.annotation.ConditionContext; import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata; import org.springframework.core.type.AnnotatedTypeMetadata;
@ -34,10 +34,10 @@ class LocalDebugPortAvailableCondition extends SpringBootCondition {
public ConditionOutcome getMatchOutcome(ConditionContext context, public ConditionOutcome getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata) { AnnotatedTypeMetadata metadata) {
RelaxedPropertyResolver resolver = new RelaxedPropertyResolver( RelaxedPropertyResolver resolver = new RelaxedPropertyResolver(
context.getEnvironment(), "spring.developertools.remote.debug."); context.getEnvironment(), "spring.devtools.remote.debug.");
Integer port = resolver.getProperty("local-port", Integer.class); Integer port = resolver.getProperty("local-port", Integer.class);
if (port == null) { if (port == null) {
port = RemoteDeveloperToolsProperties.Debug.DEFAULT_LOCAL_PORT; port = RemoteDevToolsProperties.Debug.DEFAULT_LOCAL_PORT;
} }
if (isPortAvailable(port)) { if (isPortAvailable(port)) {
return ConditionOutcome.match("Local debug port availble"); return ConditionOutcome.match("Local debug port availble");

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import java.nio.channels.SocketChannel; import java.nio.channels.SocketChannel;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.tunnel.client.TunnelClientListener; import org.springframework.boot.devtools.tunnel.client.TunnelClientListener;
/** /**
* {@link TunnelClientListener} to log open/close events. * {@link TunnelClientListener} to log open/close events.

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;
import java.net.URL; import java.net.URL;
import java.util.Arrays; import java.util.Arrays;
@ -33,20 +33,20 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.developertools.autoconfigure.DeveloperToolsProperties; import org.springframework.boot.devtools.autoconfigure.DevToolsProperties;
import org.springframework.boot.developertools.autoconfigure.OptionalLiveReloadServer; import org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer;
import org.springframework.boot.developertools.autoconfigure.RemoteDeveloperToolsProperties; import org.springframework.boot.devtools.autoconfigure.RemoteDevToolsProperties;
import org.springframework.boot.developertools.classpath.ClassPathChangedEvent; import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
import org.springframework.boot.developertools.classpath.ClassPathFileSystemWatcher; import org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher;
import org.springframework.boot.developertools.classpath.ClassPathRestartStrategy; import org.springframework.boot.devtools.classpath.ClassPathRestartStrategy;
import org.springframework.boot.developertools.classpath.PatternClassPathRestartStrategy; import org.springframework.boot.devtools.classpath.PatternClassPathRestartStrategy;
import org.springframework.boot.developertools.livereload.LiveReloadServer; import org.springframework.boot.devtools.livereload.LiveReloadServer;
import org.springframework.boot.developertools.restart.DefaultRestartInitializer; import org.springframework.boot.devtools.restart.DefaultRestartInitializer;
import org.springframework.boot.developertools.restart.RestartScope; import org.springframework.boot.devtools.restart.RestartScope;
import org.springframework.boot.developertools.restart.Restarter; import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.boot.developertools.tunnel.client.HttpTunnelConnection; import org.springframework.boot.devtools.tunnel.client.HttpTunnelConnection;
import org.springframework.boot.developertools.tunnel.client.TunnelClient; import org.springframework.boot.devtools.tunnel.client.TunnelClient;
import org.springframework.boot.developertools.tunnel.client.TunnelConnection; import org.springframework.boot.devtools.tunnel.client.TunnelConnection;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional; import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -63,16 +63,16 @@ import org.springframework.util.Assert;
* *
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
* @see org.springframework.boot.developertools.RemoteSpringApplication * @see org.springframework.boot.devtools.RemoteSpringApplication
*/ */
@Configuration @Configuration
@EnableConfigurationProperties(DeveloperToolsProperties.class) @EnableConfigurationProperties(DevToolsProperties.class)
public class RemoteClientConfiguration { public class RemoteClientConfiguration {
private static final Log logger = LogFactory.getLog(RemoteClientConfiguration.class); private static final Log logger = LogFactory.getLog(RemoteClientConfiguration.class);
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Value("${remoteUrl}") @Value("${remoteUrl}")
private String remoteUrl; private String remoteUrl;
@ -91,18 +91,18 @@ public class RemoteClientConfiguration {
} }
private ClientHttpRequestInterceptor getSecurityInterceptor() { private ClientHttpRequestInterceptor getSecurityInterceptor() {
RemoteDeveloperToolsProperties remoteProperties = this.properties.getRemote(); RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
String secretHeaderName = remoteProperties.getSecretHeaderName(); String secretHeaderName = remoteProperties.getSecretHeaderName();
String secret = remoteProperties.getSecret(); String secret = remoteProperties.getSecret();
Assert.state(secret != null, Assert.state(secret != null,
"The environment value 'spring.developertools.remote.secret' " "The environment value 'spring.devtools.remote.secret' "
+ "is required to secure your connection."); + "is required to secure your connection.");
return new HttpHeaderInterceptor(secretHeaderName, secret); return new HttpHeaderInterceptor(secretHeaderName, secret);
} }
@PostConstruct @PostConstruct
private void logWarnings() { private void logWarnings() {
RemoteDeveloperToolsProperties remoteProperties = this.properties.getRemote(); RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
if (!remoteProperties.getDebug().isEnabled() if (!remoteProperties.getDebug().isEnabled()
&& !remoteProperties.getRestart().isEnabled()) { && !remoteProperties.getRestart().isEnabled()) {
logger.warn("Remote restart and debug are both disabled."); logger.warn("Remote restart and debug are both disabled.");
@ -116,11 +116,11 @@ public class RemoteClientConfiguration {
/** /**
* LiveReload configuration. * LiveReload configuration.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.livereload", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.livereload", name = "enabled", matchIfMissing = true)
static class LiveReloadConfiguration { static class LiveReloadConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Autowired(required = false) @Autowired(required = false)
private LiveReloadServer liveReloadServer; private LiveReloadServer liveReloadServer;
@ -162,11 +162,11 @@ public class RemoteClientConfiguration {
/** /**
* Client configuration for remote update and restarts. * Client configuration for remote update and restarts.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.remote.restart", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.remote.restart", name = "enabled", matchIfMissing = true)
static class RemoteRestartClientConfiguration { static class RemoteRestartClientConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Value("${remoteUrl}") @Value("${remoteUrl}")
private String remoteUrl; private String remoteUrl;
@ -200,13 +200,13 @@ public class RemoteClientConfiguration {
/** /**
* Client configuration for remote debug HTTP tunneling. * Client configuration for remote debug HTTP tunneling.
*/ */
@ConditionalOnProperty(prefix = "spring.developertools.remote.debug", name = "enabled", matchIfMissing = true) @ConditionalOnProperty(prefix = "spring.devtools.remote.debug", name = "enabled", matchIfMissing = true)
@ConditionalOnClass(Filter.class) @ConditionalOnClass(Filter.class)
@Conditional(LocalDebugPortAvailableCondition.class) @Conditional(LocalDebugPortAvailableCondition.class)
static class RemoteDebugTunnelClientConfiguration { static class RemoteDebugTunnelClientConfiguration {
@Autowired @Autowired
private DeveloperToolsProperties properties; private DevToolsProperties properties;
@Value("${remoteUrl}") @Value("${remoteUrl}")
private String remoteUrl; private String remoteUrl;
@ -214,7 +214,7 @@ public class RemoteClientConfiguration {
@Bean @Bean
public TunnelClient remoteDebugTunnelClient( public TunnelClient remoteDebugTunnelClient(
ClientHttpRequestFactory requestFactory) { ClientHttpRequestFactory requestFactory) {
RemoteDeveloperToolsProperties remoteProperties = this.properties.getRemote(); RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
String url = this.remoteUrl + remoteProperties.getContextPath() + "/debug"; String url = this.remoteUrl + remoteProperties.getContextPath() + "/debug";
TunnelConnection connection = new HttpTunnelConnection(url, requestFactory); TunnelConnection connection = new HttpTunnelConnection(url, requestFactory);
int localPort = remoteProperties.getDebug().getLocalPort(); int localPort = remoteProperties.getDebug().getLocalPort();

@ -17,5 +17,5 @@
/** /**
* Client support for a remotely running Spring Boot application. * Client support for a remotely running Spring Boot application.
*/ */
package org.springframework.boot.developertools.remote.client; package org.springframework.boot.devtools.remote.client;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -17,5 +17,5 @@
/** /**
* Server support for a remotely running Spring Boot application. * Server support for a remotely running Spring Boot application.
*/ */
package org.springframework.boot.developertools.remote.server; package org.springframework.boot.devtools.remote.server;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.net.URL; import java.net.URL;
import java.net.URLClassLoader; import java.net.URLClassLoader;
@ -33,7 +33,7 @@ import java.util.regex.Pattern;
class ChangeableUrls implements Iterable<URL> { class ChangeableUrls implements Iterable<URL> {
private static final String[] SKIPPED_PROJECTS = { "spring-boot", private static final String[] SKIPPED_PROJECTS = { "spring-boot",
"spring-boot-developer-tools", "spring-boot-autoconfigure", "spring-boot-devtools", "spring-boot-autoconfigure",
"spring-boot-actuator", "spring-boot-starter" }; "spring-boot-actuator", "spring-boot-starter" };
private static final Pattern STARTER_PATTERN = Pattern private static final Pattern STARTER_PATTERN = Pattern

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.net.URL; import java.net.URL;
import java.net.URLClassLoader; import java.net.URLClassLoader;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import org.springframework.boot.autoconfigure.condition.ConditionOutcome; import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
import org.springframework.boot.autoconfigure.condition.SpringBootCondition; import org.springframework.boot.autoconfigure.condition.SpringBootCondition;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.boot.context.event.ApplicationReadyEvent;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.net.URL; import java.net.URL;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.lang.reflect.Method; import java.lang.reflect.Method;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.config.Scope; import org.springframework.beans.factory.config.Scope;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.beans.Introspector; import java.beans.Introspector;
import java.lang.Thread.UncaughtExceptionHandler; import java.lang.Thread.UncaughtExceptionHandler;
@ -43,8 +43,8 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.beans.CachedIntrospectionResults; import org.springframework.beans.CachedIntrospectionResults;
import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.ObjectFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFiles; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
import org.springframework.boot.developertools.restart.classloader.RestartClassLoader; import org.springframework.boot.devtools.restart.classloader.RestartClassLoader;
import org.springframework.boot.logging.DeferredLog; import org.springframework.boot.logging.DeferredLog;
import org.springframework.cglib.core.ClassNameReader; import org.springframework.cglib.core.ClassNameReader;
import org.springframework.core.ResolvableType; import org.springframework.core.ResolvableType;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;
import java.lang.Thread.UncaughtExceptionHandler; import java.lang.Thread.UncaughtExceptionHandler;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;
import java.io.Serializable; import java.io.Serializable;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;
/** /**
* A container for files that may be served from a {@link ClassLoader}. Can be used to * A container for files that may be served from a {@link ClassLoader}. Can be used to

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;
import java.io.Serializable; import java.io.Serializable;
import java.util.Collection; import java.util.Collection;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
@ -26,7 +26,7 @@ import java.util.Enumeration;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFile.Kind; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
import org.springframework.core.SmartClassLoader; import org.springframework.core.SmartClassLoader;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -17,5 +17,5 @@
/** /**
* Classloaders used for reload support * Classloaders used for reload support
*/ */
package org.springframework.boot.developertools.restart.classloader; package org.springframework.boot.devtools.restart.classloader;

@ -17,5 +17,5 @@
/** /**
* Application restart support * Application restart support
*/ */
package org.springframework.boot.developertools.restart; package org.springframework.boot.devtools.restart;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;
import java.net.URL; import java.net.URL;
import java.util.regex.Matcher; import java.util.regex.Matcher;

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;
import java.io.IOException; import java.io.IOException;
import java.io.ObjectInputStream; import java.io.ObjectInputStream;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFiles; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServerHttpResponse;

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;
import java.io.IOException; import java.io.IOException;
import org.springframework.boot.developertools.remote.server.Handler; import org.springframework.boot.devtools.remote.server.Handler;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServerHttpResponse;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -26,11 +26,11 @@ import java.util.Set;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.restart.Restarter; import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFile; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFile.Kind; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFiles; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.Kind;
import org.springframework.boot.developertools.restart.classloader.ClassLoaderFiles.SourceFolder; import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles.SourceFolder;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.FileCopyUtils; import org.springframework.util.FileCopyUtils;
import org.springframework.util.ResourceUtils; import org.springframework.util.ResourceUtils;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;
import java.net.URL; import java.net.URL;

@ -17,5 +17,5 @@
/** /**
* Remote restart server * Remote restart server
*/ */
package org.springframework.boot.developertools.restart.server; package org.springframework.boot.devtools.restart.server;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;
import java.io.Closeable; import java.io.Closeable;
import java.io.IOException; import java.io.IOException;
@ -31,8 +31,8 @@ import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.tunnel.payload.HttpTunnelPayload; import org.springframework.boot.devtools.tunnel.payload.HttpTunnelPayload;
import org.springframework.boot.developertools.tunnel.payload.HttpTunnelPayloadForwarder; import org.springframework.boot.devtools.tunnel.payload.HttpTunnelPayloadForwarder;
import org.springframework.http.HttpMethod; import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpRequest; import org.springframework.http.client.ClientHttpRequest;
@ -47,7 +47,7 @@ import org.springframework.util.Assert;
* @author Rob Winch * @author Rob Winch
* @since 1.3.0 * @since 1.3.0
* @see TunnelClient * @see TunnelClient
* @see org.springframework.boot.developertools.tunnel.server.HttpTunnelServer * @see org.springframework.boot.devtools.tunnel.server.HttpTunnelServer
*/ */
public class HttpTunnelConnection implements TunnelConnection { public class HttpTunnelConnection implements TunnelConnection {

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;
import java.io.Closeable; import java.io.Closeable;
import java.io.IOException; import java.io.IOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;
import java.nio.channels.SocketChannel; import java.nio.channels.SocketChannel;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;
import java.nio.channels.SocketChannel; import java.nio.channels.SocketChannel;
import java.util.ArrayList; import java.util.ArrayList;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;
import java.io.Closeable; import java.io.Closeable;
import java.nio.channels.WritableByteChannel; import java.nio.channels.WritableByteChannel;

@ -17,5 +17,5 @@
/** /**
* Client side TCP tunnel support. * Client side TCP tunnel support.
*/ */
package org.springframework.boot.developertools.tunnel.client; package org.springframework.boot.devtools.tunnel.client;

@ -19,5 +19,5 @@
* for the Java Debug Wire Protocol (JDWP) and as such only expects a single connection * for the Java Debug Wire Protocol (JDWP) and as such only expects a single connection
* and isn't particularly worried about resource usage. * and isn't particularly worried about resource usage.
*/ */
package org.springframework.boot.developertools.tunnel; package org.springframework.boot.devtools.tunnel;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.payload; package org.springframework.boot.devtools.tunnel.payload;
import java.io.IOException; import java.io.IOException;
import java.io.InterruptedIOException; import java.io.InterruptedIOException;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.payload; package org.springframework.boot.devtools.tunnel.payload;
import java.io.IOException; import java.io.IOException;
import java.nio.channels.WritableByteChannel; import java.nio.channels.WritableByteChannel;

@ -17,5 +17,5 @@
/** /**
* Classes to deal with payloads sent over a HTTP tunnel. * Classes to deal with payloads sent over a HTTP tunnel.
*/ */
package org.springframework.boot.developertools.tunnel.payload; package org.springframework.boot.devtools.tunnel.payload;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import java.io.IOException; import java.io.IOException;
import java.net.ConnectException; import java.net.ConnectException;
@ -27,8 +27,8 @@ import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.developertools.tunnel.payload.HttpTunnelPayload; import org.springframework.boot.devtools.tunnel.payload.HttpTunnelPayload;
import org.springframework.boot.developertools.tunnel.payload.HttpTunnelPayloadForwarder; import org.springframework.boot.devtools.tunnel.payload.HttpTunnelPayloadForwarder;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.http.server.ServerHttpAsyncRequestControl; import org.springframework.http.server.ServerHttpAsyncRequestControl;
@ -96,7 +96,7 @@ import org.springframework.util.Assert;
* *
* @author Phillip Webb * @author Phillip Webb
* @since 1.3.0 * @since 1.3.0
* @see org.springframework.boot.developertools.tunnel.client.HttpTunnelConnection * @see org.springframework.boot.devtools.tunnel.client.HttpTunnelConnection
*/ */
public class HttpTunnelServer { public class HttpTunnelServer {

@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import java.io.IOException; import java.io.IOException;
import org.springframework.boot.developertools.remote.server.Handler; import org.springframework.boot.devtools.remote.server.Handler;
import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse; import org.springframework.http.server.ServerHttpResponse;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
/** /**
* Strategy interface to provide access to a port (which may change if an existing * Strategy interface to provide access to a port (which may change if an existing

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import java.io.IOException; import java.io.IOException;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import org.springframework.util.Assert; import org.springframework.util.Assert;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;
import java.io.IOException; import java.io.IOException;
import java.nio.channels.ByteChannel; import java.nio.channels.ByteChannel;

@ -17,5 +17,5 @@
/** /**
* Server side TCP tunnel support. * Server side TCP tunnel support.
*/ */
package org.springframework.boot.developertools.tunnel.server; package org.springframework.boot.devtools.tunnel.server;

@ -0,0 +1,12 @@
# Application Initializers
org.springframework.context.ApplicationContextInitializer=\
org.springframework.boot.devtools.restart.RestartScopeInitializer
# Application Listeners
org.springframework.context.ApplicationListener=\
org.springframework.boot.devtools.restart.RestartApplicationListener
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.devtools.autoconfigure.LocalDevToolsAutoConfiguration,\
org.springframework.boot.devtools.autoconfigure.RemoteDevToolsAutoConfiguration

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools; package org.springframework.boot.devtools;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExpectedException; import org.junit.rules.ExpectedException;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.developertools.RemoteUrlPropertyExtractor; import org.springframework.boot.devtools.RemoteUrlPropertyExtractor;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.boot.developertools.autoconfigure; package org.springframework.boot.devtools.autoconfigure;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
@ -27,13 +27,13 @@ import org.junit.rules.ExpectedException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration; import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.boot.developertools.classpath.ClassPathChangedEvent; import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
import org.springframework.boot.developertools.classpath.ClassPathFileSystemWatcher; import org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher;
import org.springframework.boot.developertools.filewatch.ChangedFiles; import org.springframework.boot.devtools.filewatch.ChangedFiles;
import org.springframework.boot.developertools.livereload.LiveReloadServer; import org.springframework.boot.devtools.livereload.LiveReloadServer;
import org.springframework.boot.developertools.restart.MockRestartInitializer; import org.springframework.boot.devtools.restart.MockRestartInitializer;
import org.springframework.boot.developertools.restart.MockRestarter; import org.springframework.boot.devtools.restart.MockRestarter;
import org.springframework.boot.developertools.restart.Restarter; import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -51,11 +51,11 @@ import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verify;
/** /**
* Tests for {@link LocalDeveloperToolsAutoConfiguration}. * Tests for {@link LocalDevToolsAutoConfiguration}.
* *
* @author Phillip Webb * @author Phillip Webb
*/ */
public class LocalDeveloperToolsAutoConfigurationTests { public class LocalDevToolsAutoConfigurationTests {
@Rule @Rule
public ExpectedException thrown = ExpectedException.none(); public ExpectedException thrown = ExpectedException.none();
@ -123,7 +123,7 @@ public class LocalDeveloperToolsAutoConfigurationTests {
@Test @Test
public void liveReloadDisabled() throws Exception { public void liveReloadDisabled() throws Exception {
Map<String, Object> properties = new HashMap<String, Object>(); Map<String, Object> properties = new HashMap<String, Object>();
properties.put("spring.developertools.livereload.enabled", false); properties.put("spring.devtools.livereload.enabled", false);
this.context = initializeAndRun(Config.class, properties); this.context = initializeAndRun(Config.class, properties);
this.thrown.expect(NoSuchBeanDefinitionException.class); this.thrown.expect(NoSuchBeanDefinitionException.class);
this.context.getBean(OptionalLiveReloadServer.class); this.context.getBean(OptionalLiveReloadServer.class);
@ -158,7 +158,7 @@ public class LocalDeveloperToolsAutoConfigurationTests {
@Test @Test
public void restartDisabled() throws Exception { public void restartDisabled() throws Exception {
Map<String, Object> properties = new HashMap<String, Object>(); Map<String, Object> properties = new HashMap<String, Object>();
properties.put("spring.developertools.restart.enabled", false); properties.put("spring.devtools.restart.enabled", false);
this.context = initializeAndRun(Config.class, properties); this.context = initializeAndRun(Config.class, properties);
this.thrown.expect(NoSuchBeanDefinitionException.class); this.thrown.expect(NoSuchBeanDefinitionException.class);
this.context.getBean(ClassPathFileSystemWatcher.class); this.context.getBean(ClassPathFileSystemWatcher.class);
@ -182,20 +182,20 @@ public class LocalDeveloperToolsAutoConfigurationTests {
Map<String, Object> specifiedProperties) { Map<String, Object> specifiedProperties) {
Map<String, Object> properties = new HashMap<String, Object>(); Map<String, Object> properties = new HashMap<String, Object>();
properties.put("spring.thymeleaf.check-template-location", false); properties.put("spring.thymeleaf.check-template-location", false);
properties.put("spring.developertools.livereload.port", this.liveReloadPort); properties.put("spring.devtools.livereload.port", this.liveReloadPort);
properties.putAll(specifiedProperties); properties.putAll(specifiedProperties);
return properties; return properties;
} }
@Configuration @Configuration
@Import({ LocalDeveloperToolsAutoConfiguration.class, @Import({ LocalDevToolsAutoConfiguration.class,
ThymeleafAutoConfiguration.class }) ThymeleafAutoConfiguration.class })
public static class Config { public static class Config {
} }
@Configuration @Configuration
@Import({ LocalDeveloperToolsAutoConfiguration.class, @Import({ LocalDevToolsAutoConfiguration.class,
ThymeleafAutoConfiguration.class }) ThymeleafAutoConfiguration.class })
public static class ConfigWithMockLiveReload { public static class ConfigWithMockLiveReload {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save