public class UpdaterFileSystemPathes extends Object
| Constructor and Description |
|---|
UpdaterFileSystemPathes(Path baseDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
backupModule(UpdateModule updateModule,
String version) |
void |
cleanObsoleteFiles() |
Path |
getModulePath(UpdateModule updateModule) |
String |
getModuleVersion(UpdateModule updateModule) |
Path |
getUpdateDirectory() |
Path |
getUpdateModulePath(UpdateModule updateModule) |
String |
getUpdateModuleVersion(UpdateModule updateModule) |
Path |
getUpdaterScriptPath() |
boolean |
isModuleExists(UpdateModule updateModule) |
boolean |
isUpdateModuleExists(UpdateModule updateModule) |
void |
makeExecutable(Path path) |
void |
removeOlderBackup(UpdateModule updateModule) |
public UpdaterFileSystemPathes(Path baseDir)
public Path getUpdateDirectory()
public Path getUpdateModulePath(UpdateModule updateModule)
public boolean isUpdateModuleExists(UpdateModule updateModule)
public String getUpdateModuleVersion(UpdateModule updateModule) throws IOException
IOExceptionpublic Path getModulePath(UpdateModule updateModule)
public boolean isModuleExists(UpdateModule updateModule)
public String getModuleVersion(UpdateModule updateModule) throws IOException
IOExceptionpublic Path getUpdaterScriptPath()
public void cleanObsoleteFiles()
throws IOException
IOExceptionpublic void makeExecutable(Path path) throws IOException
IOExceptionpublic void removeOlderBackup(UpdateModule updateModule) throws IOException
IOExceptionpublic void backupModule(UpdateModule updateModule, String version) throws IOException
IOExceptionCopyright © 2012–2015 Ifremer. All rights reserved.