public class FilePluginInstaller extends Object implements RevertablePluginInstaller
RevertablePluginInstaller| Modifier and Type | Field and Description |
|---|---|
static String |
ORIGINAL_PREFIX |
| Constructor and Description |
|---|
FilePluginInstaller(File directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBackups()
Deletes all backup files in the plugin directory
|
void |
installPlugin(String key,
PluginArtifact pluginArtifact)
If there is an existing JAR with the same filename, it is replaced.
|
void |
revertInstalledPlugin(String pluginKey)
Reverts an installed plugin.
|
public static final String ORIGINAL_PREFIX
public FilePluginInstaller(File directory)
directory - where plugin JARs will be installed.public void installPlugin(String key, PluginArtifact pluginArtifact)
installPlugin in interface PluginInstallerRuntimeException - if there was an exception reading or writing files.public void revertInstalledPlugin(String pluginKey)
revertInstalledPlugin in interface RevertablePluginInstallerpluginKey - The plugin key to revertpublic void clearBackups()
clearBackups in interface RevertablePluginInstallerCopyright © 2014 Atlassian. All rights reserved.