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:
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);
|
log(2, "Wrapper version: " + wrapperVersion);
|
||||||
|
|
||||||
boolean isNew = Float.parseFloat(version) * 1000 >= 650;
|
|
||||||
|
|
||||||
String toZipOutputDir = DISTRIBUTIONS_DIR;
|
String toZipOutputDir = DISTRIBUTIONS_DIR;
|
||||||
Path kobaltJarFile = Paths.get(toZipOutputDir,
|
Path kobaltJarFile = Paths.get(toZipOutputDir,
|
||||||
isNew ? "kobalt-" + wrapperVersion : "",
|
"kobalt-" + wrapperVersion,
|
||||||
getWrapperDir().getPath() + "/" + FILE_NAME + "-" + wrapperVersion + ".jar");
|
getWrapperDir().getPath() + "/" + FILE_NAME + "-" + wrapperVersion + ".jar");
|
||||||
boolean downloadedZipFile = false;
|
boolean downloadedZipFile = false;
|
||||||
if (! Files.exists(localZipFile) || ! Files.exists(kobaltJarFile)) {
|
if (! Files.exists(localZipFile) || ! Files.exists(kobaltJarFile)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue