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, writeStreamToDisk
public boolean createDesktopShortcut(MavenJarFile file, String iconName, String toolName, boolean deleteOldShortcut) throws IOException
createDesktopShortcut
in class FileDAO
file
- 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 removedIOException
- if an IOException occurspublic File getLocationToDownloadOnDisk(String targetDownloadFolder) throws IOException
getLocationToDownloadOnDisk
in class FileDAO
targetDownloadFolder
- first place to check if it is a possible
download locationIOException
- if an IOException occursCopyright © 2016. All rights reserved.