public class HeadlessFileDAO extends FileDAO
| Constructor and Description |
|---|
HeadlessFileDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDesktopShortcut(MavenJarFile file,
String iconName,
String toolName,
boolean deleteOldShortcut)
Creates a new Desktop Shortcut to the maven jar file, atm windows only.
|
File |
getLocationToDownloadOnDisk(String targetDownloadFolder)
Try to find an at least somewhat sane location to download files to.
|
addShortcutAtDeskTop, addShortcutAtDeskTop, getMavenJarFileFromFolderWithArtifactId, unGzipAndUntarFile, unzipFile, writeStreamToDiskpublic boolean createDesktopShortcut(MavenJarFile file, String iconName, String toolName, boolean deleteOldShortcut) throws IOException
createDesktopShortcut in class FileDAOfile - the maven jarfile to make a shortcut toiconName - the name of the icon file in the resources foldertoolName - the name of the tool, e.g., PeptideShakerdeleteOldShortcut - if previous shortcuts containing the maven jar
file artifact id should be removedIOExceptionpublic File getLocationToDownloadOnDisk(String targetDownloadFolder) throws IOException
getLocationToDownloadOnDisk in class FileDAOtargetDownloadFolder - first place to check if it is a possible
download locationIOExceptionCopyright © 2014. All rights reserved.