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
16ed59e9
Commit
16ed59e9
authored
Dec 21, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7544 from jhrishikesh/gh-7478
* pr/7544: Add more debug logging to DevTools
parents
38f7389e
c2992e37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
ChangeableUrls.java
...springframework/boot/devtools/restart/ChangeableUrls.java
+8
-0
DevToolsSettings.java
...ingframework/boot/devtools/settings/DevToolsSettings.java
+11
-0
No files found.
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/ChangeableUrls.java
View file @
16ed59e9
...
@@ -30,6 +30,9 @@ import java.util.jar.Attributes;
...
@@ -30,6 +30,9 @@ import java.util.jar.Attributes;
import
java.util.jar.JarFile
;
import
java.util.jar.JarFile
;
import
java.util.jar.Manifest
;
import
java.util.jar.Manifest
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.devtools.settings.DevToolsSettings
;
import
org.springframework.boot.devtools.settings.DevToolsSettings
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
...
@@ -41,6 +44,8 @@ import org.springframework.util.StringUtils;
...
@@ -41,6 +44,8 @@ import org.springframework.util.StringUtils;
*/
*/
final
class
ChangeableUrls
implements
Iterable
<
URL
>
{
final
class
ChangeableUrls
implements
Iterable
<
URL
>
{
private
static
final
Log
logger
=
LogFactory
.
getLog
(
ChangeableUrls
.
class
);
private
final
List
<
URL
>
urls
;
private
final
List
<
URL
>
urls
;
private
ChangeableUrls
(
URL
...
urls
)
{
private
ChangeableUrls
(
URL
...
urls
)
{
...
@@ -52,6 +57,9 @@ final class ChangeableUrls implements Iterable<URL> {
...
@@ -52,6 +57,9 @@ final class ChangeableUrls implements Iterable<URL> {
reloadableUrls
.
add
(
url
);
reloadableUrls
.
add
(
url
);
}
}
}
}
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
"Matching URLs for reloading : "
+
reloadableUrls
);
}
this
.
urls
=
Collections
.
unmodifiableList
(
reloadableUrls
);
this
.
urls
=
Collections
.
unmodifiableList
(
reloadableUrls
);
}
}
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/settings/DevToolsSettings.java
View file @
16ed59e9
...
@@ -24,6 +24,9 @@ import java.util.List;
...
@@ -24,6 +24,9 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.core.io.UrlResource
;
import
org.springframework.core.io.UrlResource
;
import
org.springframework.core.io.support.PropertiesLoaderUtils
;
import
org.springframework.core.io.support.PropertiesLoaderUtils
;
...
@@ -40,6 +43,8 @@ public class DevToolsSettings {
...
@@ -40,6 +43,8 @@ public class DevToolsSettings {
*/
*/
public
static
final
String
SETTINGS_RESOURCE_LOCATION
=
"META-INF/spring-devtools.properties"
;
public
static
final
String
SETTINGS_RESOURCE_LOCATION
=
"META-INF/spring-devtools.properties"
;
private
static
final
Log
logger
=
LogFactory
.
getLog
(
DevToolsSettings
.
class
);
private
static
DevToolsSettings
settings
;
private
static
DevToolsSettings
settings
;
private
final
List
<
Pattern
>
restartIncludePatterns
=
new
ArrayList
<
Pattern
>();
private
final
List
<
Pattern
>
restartIncludePatterns
=
new
ArrayList
<
Pattern
>();
...
@@ -105,6 +110,12 @@ public class DevToolsSettings {
...
@@ -105,6 +110,12 @@ public class DevToolsSettings {
settings
.
add
(
PropertiesLoaderUtils
settings
.
add
(
PropertiesLoaderUtils
.
loadProperties
(
new
UrlResource
(
urls
.
nextElement
())));
.
loadProperties
(
new
UrlResource
(
urls
.
nextElement
())));
}
}
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
"Included patterns for restart : "
+
settings
.
restartIncludePatterns
);
logger
.
debug
(
"Excluded patterns for restart : "
+
settings
.
restartExcludePatterns
);
}
return
settings
;
return
settings
;
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
...
...
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