Class Launcher
java.lang.Object
Launcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanprivate static voidaddRepoJarPaths(File appRepo) private static Filestatic voidcopy(InputStream in, OutputStream out) (package private) static voidprivate static voidextractGosu(URL url, File to, ProgressMonitor progress) private static Fileprivate static StringgetAppName(String jarLoc) getGosuJars(File gosuInstallDir) private static Stringprivate static Fileprivate static StringgetRepoJarPaths(File appRepo) private static voidprivate static booleanisAlreadyCached(File repoTextFile) private static voidlaunchGosuMain(List<String> args) static voidprivate static FilemakeAppRepoDir(String jarLoc) private static StringmaybeRemoveAppendage(String appName) private static voidwriteRecentGosuFile(String dirName)
-
Field Details
-
JAR_REPO_DIR
- See Also:
-
JAR_REPO_TXT
- See Also:
-
URL_TO_LATEST_GOSU_RELEASE
- See Also:
-
-
Constructor Details
-
Launcher
public Launcher()
-
-
Method Details
-
main
- Throws:
IOException
-
launchGosuMain
- Throws:
Exception
-
addGosuJarsToLoader
- Throws:
Exception
-
getGosuJars
-
installGosu
private static void installGosu() -
extractGosu
- Throws:
Exception
-
writeRecentGosuFile
- Throws:
IOException
-
getHomeDir
-
findRecentGosu
-
getRecentFile
-
getRepoJarPaths
-
addRepoJarPaths
- Throws:
Exception
-
cacheJars
- Throws:
IOException
-
deleteDir
-
isAlreadyCached
- Throws:
IOException
-
makeAppRepoDir
-
getAppName
-
maybeRemoveAppendage
-
copy
- Throws:
IOException
-