Package jetbrains.buildServer.serverSide
Class MockServerPluginDescriptior
- java.lang.Object
-
- jetbrains.buildServer.serverSide.MockServerPluginDescriptior
-
- All Implemented Interfaces:
PluginDescriptor
public class MockServerPluginDescriptior extends Object implements PluginDescriptor
Created by Eugene Petrenko (eugene.petrenko@gmail.com) Date: 03.08.11 16:47
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.web.openapi.PluginDescriptor
PLUGIN_RESOURCES_PATH
-
-
Constructor Summary
Constructors Constructor Description MockServerPluginDescriptior()
MockServerPluginDescriptior(File pluginRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParameterValue(String key)
Returns parameter value of parameters that was declared in teamcity-plugin.xml file.String
getPluginName()
Name of plugin.String
getPluginResourcesPath()
returns context path to all plugin resources.String
getPluginResourcesPath(String relativePath)
Returns absolute path without web application context of the resource by plugin relative path.File
getPluginRoot()
String
getPluginVersion()
-
-
-
Constructor Detail
-
MockServerPluginDescriptior
public MockServerPluginDescriptior()
-
MockServerPluginDescriptior
public MockServerPluginDescriptior(@NotNull File pluginRoot)
-
-
Method Detail
-
getParameterValue
@Nullable public String getParameterValue(@NotNull String key)
Description copied from interface:PluginDescriptor
Returns parameter value of parameters that was declared in teamcity-plugin.xml file.- Specified by:
getParameterValue
in interfacePluginDescriptor
- Parameters:
key
- parameters name- Returns:
- trimmed and xml normalized parameter value if declared or null otherwise
-
getPluginName
@NotNull public String getPluginName()
Description copied from interface:PluginDescriptor
Name of plugin. The name of plugin is taken from it's root folder name- Specified by:
getPluginName
in interfacePluginDescriptor
- Returns:
- name of plugin
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath()
Description copied from interface:PluginDescriptor
returns context path to all plugin resources.- Specified by:
getPluginResourcesPath
in interfacePluginDescriptor
- Returns:
- plugin resources deployment paths, ends with '/'
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath(@NotNull String relativePath)
Description copied from interface:PluginDescriptor
Returns absolute path without web application context of the resource by plugin relative path.- Specified by:
getPluginResourcesPath
in interfacePluginDescriptor
- Parameters:
relativePath
- relative path of the file under plugin's "buildServerResources" directory- Returns:
- absolute server path
-
getPluginVersion
@Nullable public String getPluginVersion()
- Specified by:
getPluginVersion
in interfacePluginDescriptor
- Returns:
- plugin version string as written in teamcity-plugin.xml file or null
-
getPluginRoot
@NotNull public File getPluginRoot()
- Specified by:
getPluginRoot
in interfacePluginDescriptor
- Returns:
- path where plugin files are located on the server.
-
-