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 String
IDEA_APP_HOME_PROP
static String
IDEA_HOME_ENV_VAR
static String
IDEA_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 String
getPath(String toolName)
Returns path to a tool, if it can be found without build settings.String
getPath(String toolName, AgentRunningBuild build, BuildRunnerContext runner)
Returns path to a tool, according to current build settingsboolean
supports(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:ToolProvider
Returns true if this tool provider supports locating of the tool with specified name- Specified by:
supports
in 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:ToolProvider
Returns path to a tool, if it can be found without build settings.- Specified by:
getPath
in 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:ToolProvider
Returns path to a tool, according to current build settings- Specified by:
getPath
in 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
-
-