From cb269349f2c6202ce9cc773bb1c12182fae23ce4 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 12 Nov 2015 17:00:13 -0800 Subject: [PATCH] Renaming. --- .../main/java/com/beust/kobalt/wrapper/Main.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java index bebd6c60..c5af4b39 100644 --- a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java +++ b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java @@ -100,18 +100,18 @@ public class Main { Properties properties = maybeCreateProperties(); initWrapperFile(properties.getProperty(PROPERTY_VERSION)); - String version = getWrapperVersion(); + String wrapperVersion = getWrapperVersion(); - log(2, "Wrapper version: " + properties.getProperty(PROPERTY_VERSION)); + log(2, "Wrapper version: " + wrapperVersion); - String fileName = FILE_NAME + "-" + version + ".zip"; + String fileName = FILE_NAME + "-" + wrapperVersion + ".zip"; Files.createDirectories(Paths.get(DISTRIBUTIONS_DIR)); Path localZipFile = Paths.get(DISTRIBUTIONS_DIR, fileName); - String zipOutputDir = DISTRIBUTIONS_DIR + "/" + version; + String zipOutputDir = DISTRIBUTIONS_DIR + "/" + wrapperVersion; Path kobaltJarFile = Paths.get(zipOutputDir, - getWrapperDir().getPath() + "/" + FILE_NAME + "-" + version + ".jar"); + getWrapperDir().getPath() + "/" + FILE_NAME + "-" + wrapperVersion + ".jar"); if (! Files.exists(localZipFile) || ! Files.exists(kobaltJarFile)) { - download(localZipFile.toFile(), version); + download(localZipFile.toFile(), wrapperVersion); } // @@ -127,7 +127,7 @@ public class Main { error("Couldn't open zip file " + localZipFile + ": " + e.getMessage()); error("The file is probably corrupt, downloading it again"); Files.delete(localZipFile); - download(localZipFile.toFile(), version); + download(localZipFile.toFile(), wrapperVersion); } }