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
832b3d1f
Commit
832b3d1f
authored
May 03, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
ce740478
08143edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
CommandLineInvoker.java
...framework/boot/cli/infrastructure/CommandLineInvoker.java
+22
-11
No files found.
spring-boot-cli/src/it/java/org/springframework/boot/cli/infrastructure/CommandLineInvoker.java
View file @
832b3d1f
...
...
@@ -80,20 +80,31 @@ public final class CommandLineInvoker {
})[
0
];
ZipInputStream
input
=
new
ZipInputStream
(
new
FileInputStream
(
zip
));
ZipEntry
entry
;
while
((
entry
=
input
.
getNextEntry
())
!=
null
)
{
File
file
=
new
File
(
unpacked
,
entry
.
getName
());
if
(
entry
.
isDirectory
())
{
file
.
mkdirs
();
}
else
{
file
.
getParentFile
().
mkdirs
();
StreamUtils
.
copy
(
input
,
new
FileOutputStream
(
file
));
if
(
entry
.
getName
().
endsWith
(
"/bin/spring"
))
{
file
.
setExecutable
(
true
);
try
{
ZipEntry
entry
;
while
((
entry
=
input
.
getNextEntry
())
!=
null
)
{
File
file
=
new
File
(
unpacked
,
entry
.
getName
());
if
(
entry
.
isDirectory
())
{
file
.
mkdirs
();
}
else
{
file
.
getParentFile
().
mkdirs
();
FileOutputStream
output
=
new
FileOutputStream
(
file
);
try
{
StreamUtils
.
copy
(
input
,
output
);
if
(
entry
.
getName
().
endsWith
(
"/bin/spring"
))
{
file
.
setExecutable
(
true
);
}
}
finally
{
output
.
close
();
}
}
}
}
finally
{
input
.
close
();
}
}
File
bin
=
new
File
(
unpacked
.
listFiles
()[
0
],
"bin"
);
File
launchScript
=
new
File
(
bin
,
isWindows
()
?
"spring.bat"
:
"spring"
);
...
...
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