Merge pull request #3938 from candrews/patch-2

* pr/3938:
  Add `git.properties` to default devtools excludes
This commit is contained in:
Phillip Webb 2015-09-23 21:56:11 -07:00
commit d0dbe93755
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class DevToolsProperties {
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/maven/**,"
+ "META-INF/resources/**,resources/**,static/**,public/**,templates/**,"
+ "**/*Test.class,**/*Tests.class";
+ "**/*Test.class,**/*Tests.class,git.properties";
private static final long DEFAULT_RESTART_POLL_INTERVAL = 1000;

View File

@ -38,7 +38,8 @@ public class DevToolsPropertiesTests {
restart.getAllExclude(),
arrayContaining("META-INF/maven/**", "META-INF/resources/**",
"resources/**", "static/**", "public/**", "templates/**",
"**/*Test.class", "**/*Tests.class", "foo/**", "bar/**"));
"**/*Test.class", "**/*Tests.class", "git.properties", "foo/**",
"bar/**"));
}
@Test