Class AgentPluginPackerImpl

    • Constructor Detail

      • AgentPluginPackerImpl

        public AgentPluginPackerImpl​(@NotNull
                                     AgentPluginXmlParser agentPluginXmlParser)
    • Method Detail

      • packAgentPlugin

        @NotNull
        public File packAgentPlugin​(@NotNull
                                    String pluginName,
                                    @NotNull
                                    File pluginContent,
                                    @NotNull
                                    File destFolder,
                                    @NotNull
                                    Map<String,​Integer> entriesPermissions)
                             throws IOException
        In destFolder packs agent plugin zip file with pluginName name and content from pluginContent folder
        Parameters:
        pluginName - plugin name
        pluginContent - folder containing plugin content
        destFolder - destination folder, will be created if no folder present on disk
        Throws:
        IOException
      • packAgentTool

        @NotNull
        public File packAgentTool​(@NotNull
                                  String toolName,
                                  @NotNull
                                  File toolContent,
                                  @NotNull
                                  File destFolder)
                           throws IOException,
                                  ToolException
        In destFolder packs agent tool zip file with toolName name and content from toolContent folder. toolContent folder shouldn't contain teamcity-plugin.xml tool descriptor as it's added during packing
        Parameters:
        toolName - tool name
        toolContent - folder containing tool content, shouldn't contain teamcity-plugin.xml tool descriptor
        destFolder - destination folder, will be created if no folder present on disk
        Throws:
        IOException
        ToolException