Class AgentPluginPackerImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.installed.AgentPluginPackerImpl
-
- All Implemented Interfaces:
AgentPluginPacker
public class AgentPluginPackerImpl extends Object implements AgentPluginPacker
User: Victory.Bedrosova Date: 12/5/11 Time: 1:56 PM
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEAMCITY_PLUGIN_XML
-
Constructor Summary
Constructors Constructor Description AgentPluginPackerImpl(AgentPluginXmlParser agentPluginXmlParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
packAgentPlugin(String pluginName, File pluginContent, File destFolder, Map<String,Integer> entriesPermissions)
In destFolder packs agent plugin zip file with pluginName name and content from pluginContent foldervoid
packAgentTool(File toolContent, File destFile, Map<String,Integer> entitiesUnixPermissions)
File
packAgentTool(String toolName, File toolContent, File destFolder)
In destFolder packs agent tool zip file with toolName name and content from toolContent folder.
-
-
-
Field Detail
-
TEAMCITY_PLUGIN_XML
public static final String TEAMCITY_PLUGIN_XML
- See Also:
- Constant Field Values
-
-
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 namepluginContent
- folder containing plugin contentdestFolder
- 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 nametoolContent
- folder containing tool content, shouldn't contain teamcity-plugin.xml tool descriptordestFolder
- destination folder, will be created if no folder present on disk- Throws:
IOException
ToolException
-
packAgentTool
public void packAgentTool(@NotNull File toolContent, @NotNull File destFile, @NotNull Map<String,Integer> entitiesUnixPermissions) throws IOException, ToolException
- Specified by:
packAgentTool
in interfaceAgentPluginPacker
- Throws:
IOException
ToolException
-
-