mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish formatting
This commit is contained in:
parent
ab18fb29a3
commit
d3007fae94
@ -29,7 +29,8 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
@ConfigurationProperties(prefix = "spring.devtools")
|
||||
public class DevToolsProperties {
|
||||
|
||||
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/maven/**,META-INF/resources/**,resources/**,static/**,public/**,templates/**";
|
||||
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/maven/**,"
|
||||
+ "META-INF/resources/**,resources/**,static/**,public/**,templates/**";
|
||||
|
||||
private static final long DEFAULT_RESTART_POLL_INTERVAL = 1000;
|
||||
|
||||
|
@ -19,7 +19,6 @@ package org.springframework.boot.devtools.classpath;
|
||||
import java.io.File;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.boot.devtools.filewatch.ChangedFile;
|
||||
import org.springframework.boot.devtools.filewatch.ChangedFile.Type;
|
||||
|
||||
@ -70,10 +69,9 @@ public class PatternClassPathRestartStrategyTests {
|
||||
public void pomChange() throws Exception {
|
||||
ClassPathRestartStrategy strategy = createStrategy("META-INF/maven/**");
|
||||
assertRestartRequired(strategy, "pom.xml", true);
|
||||
assertRestartRequired(strategy,
|
||||
"META-INF/maven/org.springframework.boot/spring-boot-devtools/pom.xml", false);
|
||||
assertRestartRequired(strategy,
|
||||
"META-INF/maven/org.springframework.boot/spring-boot-devtools/pom.properties", false);
|
||||
String mavenFolder = "META-INF/maven/org.springframework.boot/spring-boot-devtools";
|
||||
assertRestartRequired(strategy, mavenFolder + "/pom.xml", false);
|
||||
assertRestartRequired(strategy, mavenFolder + "/pom.properties", false);
|
||||
}
|
||||
|
||||
private ClassPathRestartStrategy createStrategy(String pattern) {
|
||||
|
Loading…
Reference in New Issue
Block a user