public class UpgradeLauncher
extends java.lang.Object
Constructor and Description |
---|
UpgradeLauncher() |
Modifier and Type | Method and Description |
---|---|
static void |
checkForUpdates(boolean interactive)
Check whether a newer release of YAAC and/or the currently used plugins is available, displaying status.
|
static boolean |
downloadNewReleases(java.util.List<Provider> providerList,
java.lang.String[] versions,
java.lang.String protocol,
int numNeedsUpgrade,
java.lang.String[] pluginDistroName,
java.lang.String[] pluginDistroType,
boolean useSourceForge)
Download the distributions of the new versions of YAAC and/or the supported plugins in a place expected by the upgrade.jar program.
|
static java.io.File |
getInstallRootDirectory()
Locate the directory where YAAC is installed.
|
static void |
transferToLauncher()
Start up the upgrader.jar program and shut down YAAC to get it out of the way.
|
public static void checkForUpdates(boolean interactive)
interactive
- boolean true if no-upgrade-needed status should be reported (out-of-date status is always reported)public static java.io.File getInstallRootDirectory()
public static boolean downloadNewReleases(java.util.List<Provider> providerList, java.lang.String[] versions, java.lang.String protocol, int numNeedsUpgrade, java.lang.String[] pluginDistroName, java.lang.String[] pluginDistroType, boolean useSourceForge)
providerList
- List of Provider objects currently installed in YAAC, providing their currently installed version numbersversions
- String array of versions of available upgrades for the Providers in the providerList in the same order (null version string if not available for upgrade)protocol
- String of URL schema (protocol) to usenumNeedsUpgrade
- number of elements in the providerList that are candidates for upgrade (newer versions available)pluginDistroName
- String base name of the distribution file for YAAC or a pluginpluginDistroType
- String file type of the distribution file for YAAC or a pluginuseSourceForge
- boolean true if the SourceForge repository should be used as a download source @return boolean true if download succeeded for at least one upgradable filepublic static void transferToLauncher() throws java.io.IOException
java.io.IOException
- if upgrade.jar could not be started or YAAC wouldn't shut down