From 64942b985244cb0ede59ea0576c5a9fdceae4574 Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Sat, 16 Mar 2019 14:41:43 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9E=D0=BF=D0=B5=D1=87=D0=B0=D1=82?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20ProGuardBuildTask.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/binary/tasks/ProGuardBuildTask.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/ProGuardBuildTask.java b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/ProGuardBuildTask.java index ce086579..efeae198 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/ProGuardBuildTask.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/ProGuardBuildTask.java @@ -25,8 +25,8 @@ public String getName() { @Override public Path process(Path inputFile) throws IOException { + Path outputJar = server.launcherBinary.nextLowerPath(this); if (server.config.enabledProGuard) { - Path outputJar = server.launcherBinary.nextLowerPath(this); Configuration proguard_cfg = new Configuration(); ConfigurationParser parser = new ConfigurationParser(server.proguardConf.buildConfig(inputFile, outputJar), server.proguardConf.proguard.toFile(), System.getProperties()); @@ -37,12 +37,9 @@ public Path process(Path inputFile) throws IOException { } catch (ParseException e) { LogHelper.error(e); } - return outputJar; - } else { - Path outputJar = server.launcherBinary.nextPath("non-obf"); + } else IOHelper.copy(inputFile, outputJar); - return outputJar; - } + return outputJar; } @Override