public class DownloadLatestZipFromRepo extends Object
Constructor and Description |
---|
DownloadLatestZipFromRepo() |
Modifier and Type | Method and Description |
---|---|
static void |
downloadLatestZipFromRepo(File downloadFolder,
String toolName,
String groupId,
String artifactId,
String iconName,
String[] args,
URL jarRepository,
boolean startDownloadedVersion,
boolean addDesktopIcon,
FileDAO fileDAO,
WaitingHandler waitingHandler)
Retrieves the latest version of a Maven jar file from a Maven repository.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName)
Downloads the latest deploy from the genesis Maven repository of the
artifact of the jarPath, starts it without arguments and removes the old
jar if there was an update.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName,
boolean deleteOldFiles,
boolean startDownloadedVersion,
boolean addDesktopIcon,
WaitingHandler waitingHandler)
Downloads the latest deploy from the genesis Maven repository of the
artifact and starts it without arguments.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName,
boolean deleteOldFiles,
boolean addDesktopIcon,
String[] args,
URL jarRepository,
WaitingHandler waitingHandler)
Downloads the latest zip archive of the jar in the URL from a given
jarRepository.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName,
boolean deleteOldFiles,
String[] args,
boolean startDownloadedVersion,
boolean addDesktopIcon,
WaitingHandler waitingHandler)
Downloads the latest zip archive of the jar in the URL from the genesis
Maven repository.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName,
boolean deleteOldFiles,
String iconName,
String[] args,
URL jarRepository,
boolean startDownloadedVersion,
boolean addDesktopIcon,
FileDAO fileDAO,
WaitingHandler waitingHandler)
Retrieves the latest version of a Maven jar file from a Maven repository.
|
static void |
downloadLatestZipFromRepo(URL jarPath,
String toolName,
boolean deleteOldFiles,
String iconName,
String[] args,
URL jarRepository,
boolean startDownloadedVersion,
boolean addDesktopIcon,
WaitingHandler waitingHandler)
Retrieves the latest version of a Maven jar file from a Maven repository,
also checks if the environment is headless or not.
|
public static void downloadLatestZipFromRepo(URL jarPath, String toolName) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the path to the jarfiletoolName
- the name of the tool being updated, e.g., PeptideShakerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(URL jarPath, String toolName, boolean deleteOldFiles, boolean startDownloadedVersion, boolean addDesktopIcon, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the path to the jarfiletoolName
- the name of the tool being updated, e.g., PeptideShakerdeleteOldFiles
- if the jar who starts the update should be deletedstartDownloadedVersion
- if the newly downloaded jar should be
started after downloadaddDesktopIcon
- if true, a desktop icon will be createdwaitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(URL jarPath, String toolName, boolean deleteOldFiles, String[] args, boolean startDownloadedVersion, boolean addDesktopIcon, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the path to the jarfile to updatetoolName
- the name of the tool being updated, e.g., PeptideShakerdeleteOldFiles
- if the original jar file should be deletedargs
- the arguments for the newly downloaded jar when it startsstartDownloadedVersion
- if true, the downloaded version will be
started when the download completesaddDesktopIcon
- if true, a desktop icon will be createdwaitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(URL jarPath, String toolName, boolean deleteOldFiles, boolean addDesktopIcon, String[] args, URL jarRepository, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the path to the jarfile to update, cannot be null
toolName
- the name of the tool being updated, e.g., PeptideShakerdeleteOldFiles
- if the original jar folder should be deleted,
cannot be null
addDesktopIcon
- if true, a desktop icon will be createdargs
- the arguments for the newly downloaded jar when it startsjarRepository
- the repository to look for the latest deploy of the
jar file, cannot be null
waitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(URL jarPath, String toolName, boolean deleteOldFiles, String iconName, String[] args, URL jarRepository, boolean startDownloadedVersion, boolean addDesktopIcon, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the URL of the location of the jar that needs to be
updated on the file system. cannot be null
toolName
- the name of the tool being updated, e.g., PeptideShakerdeleteOldFiles
- should the old installation be removed or not
cannot be null
iconName
- name of the shortcut image should one be createdargs
- the arguments that will be passed to the newly downloaded
program when started, cannot be null
jarRepository
- the Maven repository to go look in, cannot be
null
startDownloadedVersion
- if the newly downloaded version should be
started automatically or notaddDesktopIcon
- if true, a desktop icon will be createdwaitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(URL jarPath, String toolName, boolean deleteOldFiles, String iconName, String[] args, URL jarRepository, boolean startDownloadedVersion, boolean addDesktopIcon, FileDAO fileDAO, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
jarPath
- the URL of the location of the jar that needs to be
updated on the file system. cannot be null
toolName
- the name of the tool being updated, e.g., PeptideShakerdeleteOldFiles
- should the old installation be removed or not
cannot be null
iconName
- name of the shortcut image should one be createdargs
- the arguments that will be passed to the newly downloaded
program when started, cannot be null
jarRepository
- the Maven repository to go look in, cannot be
null
startDownloadedVersion
- if the newly downloaded version should be
started automatically or notaddDesktopIcon
- if true, a desktop icon will be createdfileDAO
- what implementation of FileDAO should be used in the
updatingwaitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxpublic static void downloadLatestZipFromRepo(File downloadFolder, String toolName, String groupId, String artifactId, String iconName, String[] args, URL jarRepository, boolean startDownloadedVersion, boolean addDesktopIcon, FileDAO fileDAO, WaitingHandler waitingHandler) throws IOException, XMLStreamException, URISyntaxException
downloadFolder
- the folder to download togroupId
- the group idtoolName
- the name of the tool being updated, e.g., PeptideShakerartifactId
- the artifact idiconName
- name of the shortcut image should one be createdargs
- the arguments that will be passed to the newly downloaded
program when started, cannot be null
jarRepository
- the Maven repository to go look in, cannot be
null
startDownloadedVersion
- if the newly downloaded version should be
started automatically or notaddDesktopIcon
- if true, a desktop icon will be createdfileDAO
- what implementation of FileDAO should be used in the
updatingwaitingHandler
- the waiting handlerIOException
- should there be problems with reading or writing
files during the updatingXMLStreamException
- if there was a problem reading the meta data
from the remote Maven repositoryURISyntaxException
- if there is a problem with the URI syntaxCopyright © 2016. All rights reserved.