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 StringgetParameterValue(String key)Returns parameter value of parameters that was declared in teamcity-plugin.xml file.StringgetPluginName()Name of plugin.StringgetPluginResourcesPath()returns context path to all plugin resources.StringgetPluginResourcesPath(String relativePath)Returns absolute path without web application context of the resource by plugin relative path.FilegetPluginRoot()StringgetPluginVersion()
-
-
-
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:PluginDescriptorReturns parameter value of parameters that was declared in teamcity-plugin.xml file.- Specified by:
getParameterValuein 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:PluginDescriptorName of plugin. The name of plugin is taken from it's root folder name- Specified by:
getPluginNamein interfacePluginDescriptor- Returns:
- name of plugin
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath()
Description copied from interface:PluginDescriptorreturns context path to all plugin resources.- Specified by:
getPluginResourcesPathin interfacePluginDescriptor- Returns:
- plugin resources deployment paths, ends with '/'
-
getPluginResourcesPath
@NotNull public String getPluginResourcesPath(@NotNull String relativePath)
Description copied from interface:PluginDescriptorReturns absolute path without web application context of the resource by plugin relative path.- Specified by:
getPluginResourcesPathin interfacePluginDescriptor- Parameters:
relativePath- relative path of the file under plugin's "buildServerResources" directory- Returns:
- absolute server path
-
getPluginVersion
@Nullable public String getPluginVersion()
- Specified by:
getPluginVersionin interfacePluginDescriptor- Returns:
- plugin version string as written in teamcity-plugin.xml file or null
-
getPluginRoot
@NotNull public File getPluginRoot()
- Specified by:
getPluginRootin interfacePluginDescriptor- Returns:
- path where plugin files are located on the server.
-
-