mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Only overwrite kobaltw for new versions.
This commit is contained in:
parent
087cb81e08
commit
81eaf51367
1 changed files with 19 additions and 16 deletions
|
@ -112,7 +112,8 @@ public class Main {
|
||||||
private Path installJarFile() throws IOException {
|
private Path installJarFile() throws IOException {
|
||||||
Properties properties = maybeCreateProperties();
|
Properties properties = maybeCreateProperties();
|
||||||
|
|
||||||
initWrapperFile(properties.getProperty(PROPERTY_VERSION));
|
String version = properties.getProperty(PROPERTY_VERSION);
|
||||||
|
initWrapperFile(version);
|
||||||
String wrapperVersion = getWrapperVersion();
|
String wrapperVersion = getWrapperVersion();
|
||||||
|
|
||||||
log(2, "Wrapper version: " + wrapperVersion);
|
log(2, "Wrapper version: " + wrapperVersion);
|
||||||
|
@ -147,6 +148,7 @@ public class Main {
|
||||||
//
|
//
|
||||||
// Copy the wrapper files in the current kobalt/wrapper directory
|
// Copy the wrapper files in the current kobalt/wrapper directory
|
||||||
//
|
//
|
||||||
|
if (! wrapperVersion.equals(version)) {
|
||||||
log(2, "Copying the wrapper files");
|
log(2, "Copying the wrapper files");
|
||||||
for (String file : FILES) {
|
for (String file : FILES) {
|
||||||
Path from = Paths.get(zipOutputDir, file);
|
Path from = Paths.get(zipOutputDir, file);
|
||||||
|
@ -167,6 +169,7 @@ public class Main {
|
||||||
log(1, "Couldn't make " + KOBALTW + " executable");
|
log(1, "Couldn't make " + KOBALTW + " executable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return kobaltJarFile;
|
return kobaltJarFile;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue