mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Merge branch '1.5.x'
This commit is contained in:
commit
e216560896
@ -76,7 +76,9 @@ public class JarFileRemoteApplicationLauncher extends RemoteApplicationLauncher
|
||||
file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1)
|
||||
.replace("\\", "/") + (file.isDirectory() ? "/" : "")));
|
||||
if (file.isFile()) {
|
||||
StreamUtils.copy(new FileInputStream(file), output);
|
||||
try (FileInputStream input = new FileInputStream(file)) {
|
||||
StreamUtils.copy(input, output);
|
||||
}
|
||||
}
|
||||
output.closeEntry();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user