Commit d3007fae authored by Phillip Webb's avatar Phillip Webb

Polish formatting

parent ab18fb29
...@@ -29,7 +29,8 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty; ...@@ -29,7 +29,8 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty;
@ConfigurationProperties(prefix = "spring.devtools") @ConfigurationProperties(prefix = "spring.devtools")
public class DevToolsProperties { 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; private static final long DEFAULT_RESTART_POLL_INTERVAL = 1000;
......
...@@ -19,7 +19,6 @@ package org.springframework.boot.devtools.classpath; ...@@ -19,7 +19,6 @@ package org.springframework.boot.devtools.classpath;
import java.io.File; import java.io.File;
import org.junit.Test; import org.junit.Test;
import org.springframework.boot.devtools.filewatch.ChangedFile; import org.springframework.boot.devtools.filewatch.ChangedFile;
import org.springframework.boot.devtools.filewatch.ChangedFile.Type; import org.springframework.boot.devtools.filewatch.ChangedFile.Type;
...@@ -70,10 +69,9 @@ public class PatternClassPathRestartStrategyTests { ...@@ -70,10 +69,9 @@ public class PatternClassPathRestartStrategyTests {
public void pomChange() throws Exception { public void pomChange() throws Exception {
ClassPathRestartStrategy strategy = createStrategy("META-INF/maven/**"); ClassPathRestartStrategy strategy = createStrategy("META-INF/maven/**");
assertRestartRequired(strategy, "pom.xml", true); assertRestartRequired(strategy, "pom.xml", true);
assertRestartRequired(strategy, String mavenFolder = "META-INF/maven/org.springframework.boot/spring-boot-devtools";
"META-INF/maven/org.springframework.boot/spring-boot-devtools/pom.xml", false); assertRestartRequired(strategy, mavenFolder + "/pom.xml", false);
assertRestartRequired(strategy, assertRestartRequired(strategy, mavenFolder + "/pom.properties", false);
"META-INF/maven/org.springframework.boot/spring-boot-devtools/pom.properties", false);
} }
private ClassPathRestartStrategy createStrategy(String pattern) { private ClassPathRestartStrategy createStrategy(String pattern) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment