mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
NumberFormatException when parsing the new version number.
Closes https://github.com/cbeust/kobalt/issues/335
This commit is contained in:
parent
f01dfbe095
commit
1da473a73c
1 changed files with 1 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue