mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Bug with AttachJarsTask, this bug lose AutogenConfig.
This commit is contained in:
parent
288fc7e70b
commit
417db979f4
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
|
||||
dependencies {
|
||||
bundle project(':libLauncher')
|
||||
pack project(':libLauncher')
|
||||
bundle 'org.ow2.asm:asm-commons:7.0'
|
||||
bundle 'org.ow2.asm:asm-util:7.0'
|
||||
bundle 'mysql:mysql-connector-java:8.0.13'
|
||||
|
|
|
@ -36,7 +36,7 @@ public Path process(Path inputFile) throws IOException {
|
|||
ZipOutputStream output = new ZipOutputStream(IOHelper.newOutput(outputFile))) {
|
||||
ZipEntry e = input.getNextEntry();
|
||||
while (e != null) {
|
||||
if (e.isDirectory() || srv.buildHookManager.isContainsBlacklist(e.getName())) {
|
||||
if (e.isDirectory()) {
|
||||
e = input.getNextEntry();
|
||||
continue;
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ private void attach(ZipOutputStream output, List<Path> lst) throws IOException {
|
|||
ZipEntry e = input.getNextEntry();
|
||||
while (e != null) {
|
||||
String filename = e.getName();
|
||||
if (exclusions.stream().noneMatch(filename::startsWith) && !srv.buildHookManager.isContainsBlacklist(filename) && !e.isDirectory()) {
|
||||
if (exclusions.stream().noneMatch(filename::startsWith) && !e.isDirectory()) {
|
||||
output.putNextEntry(IOHelper.newZipEntry(e));
|
||||
IOHelper.transfer(input, output);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue