@Deprecated public class ApplicationUpdater extends Object
ApplicationUpdaterCallback passer en parametre de la methode update(java.lang.String, java.io.File, java.io.File, boolean, org.nuiton.util.updater.ApplicationUpdaterCallback)
ApplicationUpdaterCallback.updateToDo(java.util.Map<java.lang.String, org.nuiton.util.updater.ApplicationInfo>))MonApp-0.3/Readme.txt MonApp-0.3/License.txtCeci est du au fait qu'on renomme le repertoire racine avec le nom de l'application, donc si le repertoire racine n'existe pas ou qu'il y a plusieurs repertoires a la racine le resultat de l'operation n'est pas celui souhaite
| os.name | os.arch |
| linux | amd64 |
| linux | i386 |
| mac | ppc |
| windows | x86 |
| solaris | sparc |
ApplicationUpdaterCallback.updateToDo(java.util.Map) en modifiant
l'url avant de retourner la map| Modifier and Type | Field and Description |
|---|---|
protected ApplicationConfig |
config
Deprecated.
|
protected static String |
SEPARATOR_KEY
Deprecated.
|
protected static String |
VERSION_FILE
Deprecated.
|
static String |
ZERO_VERSION
Deprecated.
|
| Constructor and Description |
|---|
ApplicationUpdater()
Deprecated.
Utilise le fichier de configuration par defaut: ApplicationUpdater.properties
|
ApplicationUpdater(ApplicationConfig config)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createVersionFile(File dir,
String version)
Deprecated.
|
static File |
getVersionFile(File dir)
Deprecated.
|
Map<String,ApplicationInfo> |
getVersions(String url,
File currentDir)
Deprecated.
|
static String |
loadVersionFile(String appName,
File dir)
Deprecated.
|
static void |
storeVersionFile(File dir,
String version)
Deprecated.
|
void |
update(String url,
File currentDir,
File destDir,
boolean async,
ApplicationUpdaterCallback callback)
Deprecated.
|
void |
update(String url,
File currentDir,
File destDir,
boolean async,
ApplicationUpdaterCallback callback,
DownloadMonitor downloadMonitor)
Deprecated.
|
protected static final String VERSION_FILE
protected static final String SEPARATOR_KEY
public static final String ZERO_VERSION
protected ApplicationConfig config
public ApplicationUpdater()
public ApplicationUpdater(ApplicationConfig config)
config - La configuration a utiliser pour rechercher le proxy (http_proxy)
et os.name, os.archpublic static void createVersionFile(File dir, String version) throws IOException
IOExceptionpublic static void storeVersionFile(File dir, String version) throws IOException
IOExceptionpublic void update(String url, File currentDir, File destDir, boolean async, ApplicationUpdaterCallback callback)
url - url where properties file is downloadable. This properties
must contains information on application releasecurrentDir - directory where application is currentlydestDir - default directory to put new application version, can be null if you used callbackasync - if true, check is done in background modecallback - callback used to interact with updater, can be nullpublic void update(String url, File currentDir, File destDir, boolean async, ApplicationUpdaterCallback callback, DownloadMonitor downloadMonitor)
url - url where properties file is downloadable. This properties
must contains information on application releasecurrentDir - directory where application is currentlydestDir - default directory to put new application version, can be null if you used callbackasync - if true, check is done in background modecallback - callback used to interact with updater, can be nulldownloadMonitor - optinal download monitorpublic Map<String,ApplicationInfo> getVersions(String url, File currentDir)
url - url where properties file is downloadable. This properties
must contains information on application releasecurrentDir - directory where application is currentlyCopyright © 2013 CodeLutin. All Rights Reserved.