mirror of
https://github.com/deathmarine/Luyten.git
synced 2025-02-17 04:59:01 +00:00
Fixed filesaver not saving non-java files
This commit is contained in:
parent
872186aef9
commit
b9bb2f54d0
@ -198,11 +198,11 @@ public class FileSaver {
|
||||
try {
|
||||
JarEntry etn = new JarEntry(entry.getName());
|
||||
if(history.add(etn))
|
||||
continue;
|
||||
{
|
||||
history.add(etn);
|
||||
out.putNextEntry(etn);
|
||||
try {
|
||||
InputStream in = jfile.getInputStream(entry);
|
||||
InputStream in = jfile.getInputStream(etn);
|
||||
if (in != null) {
|
||||
try {
|
||||
int count;
|
||||
@ -216,7 +216,8 @@ public class FileSaver {
|
||||
} finally {
|
||||
out.closeEntry();
|
||||
}
|
||||
} catch (ZipException ze) {
|
||||
}
|
||||
} catch (ZipException ze) {
|
||||
// some jar-s contain duplicate pom.xml entries: ignore it
|
||||
if (!ze.getMessage().contains("duplicate")) {
|
||||
throw ze;
|
||||
|
Loading…
x
Reference in New Issue
Block a user