1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

NumberFormatException when parsing the new version number.

Closes https://github.com/cbeust/kobalt/issues/335
This commit is contained in:
Cedric Beust 2017-03-01 13:05:30 -08:00
parent f01dfbe095
commit 1da473a73c

View file

@ -167,11 +167,9 @@ public class Main {
log(2, "Wrapper version: " + wrapperVersion);
boolean isNew = Float.parseFloat(version) * 1000 >= 650;
String toZipOutputDir = DISTRIBUTIONS_DIR;
Path kobaltJarFile = Paths.get(toZipOutputDir,
isNew ? "kobalt-" + wrapperVersion : "",
"kobalt-" + wrapperVersion,
getWrapperDir().getPath() + "/" + FILE_NAME + "-" + wrapperVersion + ".jar");
boolean downloadedZipFile = false;
if (! Files.exists(localZipFile) || ! Files.exists(kobaltJarFile)) {