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

Install launcher(s) if not found.

This commit is contained in:
Erik C. Thauvin 2017-03-24 18:27:44 -07:00
parent c83d0b3710
commit 3acf5dc2ad

View file

@ -219,6 +219,20 @@ public class Main {
log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper"); log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper");
installWrapperFiles(version, wrapperVersion); installWrapperFiles(version, wrapperVersion);
} }
//
// Install the launcher if not already found.
//
File kobaltw = new File(KOBALTW);
File kobaltw_bat = new File(KOBALTW_BAT);
if (!kobaltw.exists()) {
generateKobaltW(kobaltw.toPath());
}
if (!kobaltw_bat.exists()) {
generateKobaltWBat(kobaltw_bat.toPath());
}
} }
return kobaltJarFile; return kobaltJarFile;