Class Launcher
java.lang.Object
Launcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
private static void
addRepoJarPaths
(File appRepo) private static File
static void
copy
(InputStream in, OutputStream out) (package private) static void
private static void
extractGosu
(URL url, File to, ProgressMonitor progress) private static File
private static String
getAppName
(String jarLoc) getGosuJars
(File gosuInstallDir) private static String
private static File
private static String
getRepoJarPaths
(File appRepo) private static void
private static boolean
isAlreadyCached
(File repoTextFile) private static void
launchGosuMain
(List<String> args) static void
private static File
makeAppRepoDir
(String jarLoc) private static String
maybeRemoveAppendage
(String appName) private static void
writeRecentGosuFile
(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
-