Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
d3007fae
Commit
d3007fae
authored
Jun 23, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish formatting
parent
ab18fb29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
DevToolsProperties.java
...ework/boot/devtools/autoconfigure/DevToolsProperties.java
+2
-1
PatternClassPathRestartStrategyTests.java
...tools/classpath/PatternClassPathRestartStrategyTests.java
+3
-5
No files found.
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java
View file @
d3007fae
...
@@ -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
;
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/classpath/PatternClassPathRestartStrategyTests.java
View file @
d3007fae
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment