Merge branch '1.5.x'

This commit is contained in:
Andy Wilkinson 2017-11-20 14:17:57 +00:00
commit e216560896

View File

@ -76,7 +76,9 @@ public class JarFileRemoteApplicationLauncher extends RemoteApplicationLauncher
file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1) file.getAbsolutePath().substring(root.getAbsolutePath().length() + 1)
.replace("\\", "/") + (file.isDirectory() ? "/" : ""))); .replace("\\", "/") + (file.isDirectory() ? "/" : "")));
if (file.isFile()) { if (file.isFile()) {
StreamUtils.copy(new FileInputStream(file), output); try (FileInputStream input = new FileInputStream(file)) {
StreamUtils.copy(input, output);
}
} }
output.closeEntry(); output.closeEntry();
} }