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
509c3aef
Commit
509c3aef
authored
Oct 10, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.1.x'
parents
30f8954b
6028d92a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Launcher.java
...c/main/java/org/springframework/boot/loader/Launcher.java
+1
-1
JarFile.java
...ain/java/org/springframework/boot/loader/jar/JarFile.java
+1
-0
No files found.
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java
View file @
509c3aef
...
...
@@ -142,7 +142,7 @@ public abstract class Launcher {
ProtectionDomain
protectionDomain
=
getClass
().
getProtectionDomain
();
CodeSource
codeSource
=
protectionDomain
.
getCodeSource
();
URI
location
=
(
codeSource
==
null
?
null
:
codeSource
.
getLocation
().
toURI
());
String
path
=
(
location
==
null
?
null
:
location
.
get
Path
());
String
path
=
(
location
==
null
?
null
:
location
.
get
SchemeSpecificPart
());
if
(
path
==
null
)
{
throw
new
IllegalStateException
(
"Unable to determine code source archive"
);
}
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java
View file @
509c3aef
...
...
@@ -424,6 +424,7 @@ public class JarFile extends java.util.jar.JarFile implements Iterable<JarEntryD
if
(
this
.
url
==
null
)
{
Handler
handler
=
new
Handler
(
this
);
String
file
=
this
.
rootFile
.
getFile
().
toURI
()
+
this
.
pathFromRoot
+
"!/"
;
file
=
file
.
replace
(
"file:////"
,
"file://"
);
// Fix UNC paths
this
.
url
=
new
URL
(
"jar"
,
""
,
-
1
,
file
,
handler
);
}
return
this
.
url
;
...
...
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