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