[FIX] Опечатки в ProGuardBuildTask.

This commit is contained in:
zaxar163 2019-03-16 14:41:43 +03:00
parent f522f5014c
commit 64942b9852
No known key found for this signature in database
GPG key ID: E3B309DD3852DE06

View file

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