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
38552065
Commit
38552065
authored
Jun 12, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
Closes gh-17114
parents
a084cc3f
7103eab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
ChangeableUrls.java
...springframework/boot/devtools/restart/ChangeableUrls.java
+10
-15
No files found.
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/ChangeableUrls.java
View file @
38552065
...
@@ -117,29 +117,24 @@ final class ChangeableUrls implements Iterable<URL> {
...
@@ -117,29 +117,24 @@ final class ChangeableUrls implements Iterable<URL> {
}
}
private
static
List
<
URL
>
getUrlsFromClassPathOfJarManifestIfPossible
(
URL
url
)
{
private
static
List
<
URL
>
getUrlsFromClassPathOfJarManifestIfPossible
(
URL
url
)
{
JarFile
jarFile
=
getJarFileIfPossible
(
url
);
if
(
jarFile
==
null
)
{
return
Collections
.
emptyList
();
}
try
{
return
getUrlsFromManifestClassPathAttribute
(
url
,
jarFile
);
}
catch
(
IOException
ex
)
{
throw
new
IllegalStateException
(
"Failed to read Class-Path attribute from manifest of jar "
+
url
,
ex
);
}
}
private
static
JarFile
getJarFileIfPossible
(
URL
url
)
{
try
{
try
{
File
file
=
new
File
(
url
.
toURI
());
File
file
=
new
File
(
url
.
toURI
());
if
(
file
.
isFile
())
{
if
(
file
.
isFile
())
{
return
new
JarFile
(
file
);
try
(
JarFile
jarFile
=
new
JarFile
(
file
))
{
try
{
return
getUrlsFromManifestClassPathAttribute
(
url
,
jarFile
);
}
catch
(
IOException
ex
)
{
throw
new
IllegalStateException
(
"Failed to read Class-Path attribute from manifest of jar "
+
url
,
ex
);
}
}
}
}
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
// Assume it's not a jar and continue
// Assume it's not a jar and continue
}
}
return
null
;
return
Collections
.
emptyList
()
;
}
}
private
static
List
<
URL
>
getUrlsFromManifestClassPathAttribute
(
URL
jarUrl
,
JarFile
jarFile
)
throws
IOException
{
private
static
List
<
URL
>
getUrlsFromManifestClassPathAttribute
(
URL
jarUrl
,
JarFile
jarFile
)
throws
IOException
{
...
...
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