Class 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
    • 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 interface PluginDescriptor
        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 interface PluginDescriptor
        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 interface PluginDescriptor
        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 interface PluginDescriptor
        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 interface PluginDescriptor
        Returns:
        plugin version string as written in teamcity-plugin.xml file or null
      • getPluginRoot

        @NotNull
        public File getPluginRoot()
        Specified by:
        getPluginRoot in interface PluginDescriptor
        Returns:
        path where plugin files are located on the server.