Class ServerPluginPaths
- java.lang.Object
-
- jetbrains.buildServer.web.plugins.ServerPluginPaths
-
- All Implemented Interfaces:
PluginPaths
public class ServerPluginPaths extends Object implements PluginPaths
- Author:
- Eugene Petrenko Created: 05.02.2010 19:46:08
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.plugins.PluginPaths
PluginPaths.PluginLocation
-
-
Constructor Summary
Constructors Constructor Description ServerPluginPaths(javax.servlet.ServletContext context, ServerPaths serverPath, PluginsOriginalPackagesImpl pluginsOriginalPackages)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginPaths.PluginLocation
findLocation(String path)
PluginPaths.PluginLocation
findLocation(PluginInfo info)
File
getAgentUpdatePluginsFolder()
File
getAgentZipFile()
File
getAgentZipFolder()
File
getOriginalLocation(PluginInfo info)
The path to the plugin installation - i.e.String
getPluginLocation(PluginInfo info)
Returns abstract representation of the plugin location.File
getPluginsFolder(PluginPaths.PluginLocation location)
Get the root directory that should be scanned for the pluginsFile
getUnpackFolder(File pluginsFolder)
Where zipped plugins from the specified folder should be unpacked.static String
getUnpackName(File pluginZip)
-
-
-
Constructor Detail
-
ServerPluginPaths
public ServerPluginPaths(@NotNull javax.servlet.ServletContext context, @NotNull ServerPaths serverPath, @NotNull PluginsOriginalPackagesImpl pluginsOriginalPackages)
-
-
Method Detail
-
getPluginsFolder
@NotNull public File getPluginsFolder(@NotNull PluginPaths.PluginLocation location)
Description copied from interface:PluginPaths
Get the root directory that should be scanned for the plugins- Specified by:
getPluginsFolder
in interfacePluginPaths
-
getUnpackFolder
@NotNull public File getUnpackFolder(@NotNull File pluginsFolder)
Description copied from interface:PluginPaths
Where zipped plugins from the specified folder should be unpacked.- Specified by:
getUnpackFolder
in interfacePluginPaths
- Parameters:
pluginsFolder
- result of thePluginPaths.getPluginsFolder(PluginLocation)
-
getPluginLocation
@NotNull public String getPluginLocation(@NotNull PluginInfo info)
Description copied from interface:PluginPaths
Returns abstract representation of the plugin location. Note that this is not a path to the plugin file- Specified by:
getPluginLocation
in interfacePluginPaths
-
getOriginalLocation
@NotNull public File getOriginalLocation(@NotNull PluginInfo info)
Description copied from interface:PluginPaths
The path to the plugin installation - i.e. zip file for the unpacked plugins, plugin's root directory for the plugins that were not unpacked- Specified by:
getOriginalLocation
in interfacePluginPaths
-
getAgentUpdatePluginsFolder
@NotNull public File getAgentUpdatePluginsFolder()
- Specified by:
getAgentUpdatePluginsFolder
in interfacePluginPaths
- Returns:
- path to /update/plugins folder in server installation path
-
getAgentZipFile
@NotNull public File getAgentZipFile()
- Specified by:
getAgentZipFile
in interfacePluginPaths
- Returns:
- path to buildAgent.zip file on the server
-
getAgentZipFolder
@NotNull public File getAgentZipFolder()
- Specified by:
getAgentZipFolder
in interfacePluginPaths
- Returns:
- to the folder containing buildAgent.zip and buildAgentFull.zip on server
-
findLocation
@Nullable public PluginPaths.PluginLocation findLocation(@NotNull PluginInfo info)
- Specified by:
findLocation
in interfacePluginPaths
-
findLocation
@Nullable public PluginPaths.PluginLocation findLocation(@NotNull String path)
- Specified by:
findLocation
in interfacePluginPaths
-
-