Package jetbrains.buildServer.agent.impl
Class IdeaToolProvider
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.IdeaToolProvider
-
- All Implemented Interfaces:
ToolProvider
public class IdeaToolProvider extends Object implements ToolProvider
- Author:
- Pavel.Sher
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDEA_APP_HOME_PROPstatic StringIDEA_HOME_ENV_VARstatic StringIDEA_TOOL_NAME
-
Constructor Summary
Constructors Constructor Description IdeaToolProvider(ToolProvidersRegistry toolProvidersRegistry, BundledToolsRegistry bundled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPath(String toolName)Returns path to a tool, if it can be found without build settings.StringgetPath(String toolName, AgentRunningBuild build, BuildRunnerContext runner)Returns path to a tool, according to current build settingsbooleansupports(String toolName)Returns true if this tool provider supports locating of the tool with specified name
-
-
-
Field Detail
-
IDEA_TOOL_NAME
public static final String IDEA_TOOL_NAME
- See Also:
- Constant Field Values
-
IDEA_HOME_ENV_VAR
public static final String IDEA_HOME_ENV_VAR
- See Also:
- Constant Field Values
-
IDEA_APP_HOME_PROP
public static final String IDEA_APP_HOME_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IdeaToolProvider
public IdeaToolProvider(@NotNull ToolProvidersRegistry toolProvidersRegistry, @NotNull BundledToolsRegistry bundled)
-
-
Method Detail
-
supports
public boolean supports(@NotNull String toolName)Description copied from interface:ToolProviderReturns true if this tool provider supports locating of the tool with specified name- Specified by:
supportsin interfaceToolProvider- Parameters:
toolName- name of the tool- Returns:
- true if specified name supported
-
getPath
@NotNull public String getPath(@NotNull String toolName) throws ToolCannotBeFoundException
Description copied from interface:ToolProviderReturns path to a tool, if it can be found without build settings.- Specified by:
getPathin interfaceToolProvider- Parameters:
toolName- tool name- Returns:
- path to a tool
- Throws:
ToolCannotBeFoundException- if provider can't locate a tool
-
getPath
@NotNull public String getPath(@NotNull String toolName, @NotNull AgentRunningBuild build, @NotNull BuildRunnerContext runner) throws ToolCannotBeFoundException
Description copied from interface:ToolProviderReturns path to a tool, according to current build settings- Specified by:
getPathin interfaceToolProvider- Parameters:
toolName- tool namebuild- current buildrunner- current runner- Returns:
- path to a tool on a filesystem, never null
- Throws:
ToolCannotBeFoundException- if provider can't locate a tool
-
-