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.PluginLocationfindLocation(String path)PluginPaths.PluginLocationfindLocation(PluginInfo info)FilegetAgentUpdatePluginsFolder()FilegetAgentZipFile()FilegetAgentZipFolder()FilegetOriginalLocation(PluginInfo info)The path to the plugin installation - i.e.StringgetPluginLocation(PluginInfo info)Returns abstract representation of the plugin location.FilegetPluginsFolder(PluginPaths.PluginLocation location)Get the root directory that should be scanned for the pluginsFilegetUnpackFolder(File pluginsFolder)Where zipped plugins from the specified folder should be unpacked.static StringgetUnpackName(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:PluginPathsGet the root directory that should be scanned for the plugins- Specified by:
getPluginsFolderin interfacePluginPaths
-
getUnpackFolder
@NotNull public File getUnpackFolder(@NotNull File pluginsFolder)
Description copied from interface:PluginPathsWhere zipped plugins from the specified folder should be unpacked.- Specified by:
getUnpackFolderin interfacePluginPaths- Parameters:
pluginsFolder- result of thePluginPaths.getPluginsFolder(PluginLocation)
-
getPluginLocation
@NotNull public String getPluginLocation(@NotNull PluginInfo info)
Description copied from interface:PluginPathsReturns abstract representation of the plugin location. Note that this is not a path to the plugin file- Specified by:
getPluginLocationin interfacePluginPaths
-
getOriginalLocation
@NotNull public File getOriginalLocation(@NotNull PluginInfo info)
Description copied from interface:PluginPathsThe 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:
getOriginalLocationin interfacePluginPaths
-
getAgentUpdatePluginsFolder
@NotNull public File getAgentUpdatePluginsFolder()
- Specified by:
getAgentUpdatePluginsFolderin interfacePluginPaths- Returns:
- path to /update/plugins folder in server installation path
-
getAgentZipFile
@NotNull public File getAgentZipFile()
- Specified by:
getAgentZipFilein interfacePluginPaths- Returns:
- path to buildAgent.zip file on the server
-
getAgentZipFolder
@NotNull public File getAgentZipFolder()
- Specified by:
getAgentZipFolderin interfacePluginPaths- Returns:
- to the folder containing buildAgent.zip and buildAgentFull.zip on server
-
findLocation
@Nullable public PluginPaths.PluginLocation findLocation(@NotNull PluginInfo info)
- Specified by:
findLocationin interfacePluginPaths
-
findLocation
@Nullable public PluginPaths.PluginLocation findLocation(@NotNull String path)
- Specified by:
findLocationin interfacePluginPaths
-
-