public class HeadlessFileDAO extends FileDAO
Constructor and Description |
---|
HeadlessFileDAO() |
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, writeStreamToDisk
public boolean createDesktopShortcut(MavenJarFile file, java.lang.String iconName, boolean deleteOldShortcut) throws java.io.IOException
createDesktopShortcut
in class FileDAO
file
- 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.IOException
public java.io.File getLocationToDownloadOnDisk(java.lang.String targetDownloadFolder) throws java.io.IOException
getLocationToDownloadOnDisk
in class FileDAO
targetDownloadFolder
- first place to check if it is a possible
download locationjava.io.IOException
Copyright © 2013. All Rights Reserved.