[FIX] Bug with AttachJarsTask, this bug lose AutogenConfig.

This commit is contained in:
zaxar163 2019-01-09 19:55:50 +04:00
parent 288fc7e70b
commit 417db979f4
No known key found for this signature in database
GPG key ID: CEE900027AE098E0
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

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