Merge branch '1.5.x'

pull/10545/merge
Andy Wilkinson 7 years ago
commit e216560896

@ -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();
} }

Loading…
Cancel
Save