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
2d43781c
Commit
2d43781c
authored
Aug 23, 2013
by
Daniel L. Buchko
Committed by
Phillip Webb
Aug 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of spaces in file paths
Update Launcher to correctly handle spaced in file paths.
parent
8b4a87d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Launcher.java
...c/main/java/org/springframework/boot/loader/Launcher.java
+5
-5
No files found.
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java
View file @
2d43781c
...
@@ -18,6 +18,7 @@ package org.springframework.boot.loader;
...
@@ -18,6 +18,7 @@ package org.springframework.boot.loader;
import
java.io.File
;
import
java.io.File
;
import
java.lang.reflect.Constructor
;
import
java.lang.reflect.Constructor
;
import
java.net.URI
;
import
java.net.URL
;
import
java.net.URL
;
import
java.security.CodeSource
;
import
java.security.CodeSource
;
import
java.security.ProtectionDomain
;
import
java.security.ProtectionDomain
;
...
@@ -67,13 +68,12 @@ public abstract class Launcher {
...
@@ -67,13 +68,12 @@ public abstract class Launcher {
protected
void
launch
(
String
[]
args
,
ProtectionDomain
protectionDomain
)
protected
void
launch
(
String
[]
args
,
ProtectionDomain
protectionDomain
)
throws
Exception
{
throws
Exception
{
CodeSource
codeSource
=
protectionDomain
.
getCodeSource
();
CodeSource
codeSource
=
protectionDomain
.
getCodeSource
();
URL
codeSourceLocation
=
(
codeSource
==
null
?
null
:
codeSource
.
getLocation
());
URI
location
=
(
codeSource
==
null
?
null
:
codeSource
.
getLocation
().
toURI
());
String
codeSourcePath
=
(
codeSourceLocation
==
null
?
null
:
codeSourceLocation
String
path
=
(
location
==
null
?
null
:
location
.
getPath
());
.
getPath
());
if
(
path
==
null
)
{
if
(
codeSourcePath
==
null
)
{
throw
new
IllegalStateException
(
"Unable to determine code source archive"
);
throw
new
IllegalStateException
(
"Unable to determine code source archive"
);
}
}
File
root
=
new
File
(
codeSourceP
ath
);
File
root
=
new
File
(
p
ath
);
if
(!
root
.
exists
())
{
if
(!
root
.
exists
())
{
throw
new
IllegalStateException
(
throw
new
IllegalStateException
(
"Unable to determine code source archive from "
+
root
);
"Unable to determine code source archive from "
+
root
);
...
...
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