public class GUIFileDAO extends FileDAO
| Constructor and Description |
|---|
GUIFileDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDesktopShortcut(MavenJarFile file,
java.lang.String iconName,
boolean deleteOldShortcut)
Creates a new Desktop Shortcut to the maven jar file, atm windows only.
|
java.io.File |
getLocationToDownloadOnDisk(java.lang.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, java.lang.String iconName, boolean deleteOldShortcut) throws java.io.IOException
createDesktopShortcut in class FileDAOfile - the maven jarfile to make a shortcut toiconName - the name of the icon file in the resources folderdeleteOldShortcut - if previous shortcuts containing the maven jar
file artifact id should be removedjava.io.IOExceptionpublic java.io.File getLocationToDownloadOnDisk(java.lang.String targetDownloadFolder)
throws java.io.IOException
getLocationToDownloadOnDisk in class FileDAOtargetDownloadFolder - first place to check if it is a possible
download locationjava.io.IOExceptionCopyright © 2014. All Rights Reserved.