Package jetbrains
Class MockBuildRunnerDescriptor
- java.lang.Object
-
- jetbrains.MockBuildRunnerDescriptor
-
- All Implemented Interfaces:
BuildRunnerDescriptor
,ParametersDescriptor
,SBuildRunnerDescriptor
public class MockBuildRunnerDescriptor extends Object implements SBuildRunnerDescriptor
-
-
Constructor Summary
Constructors Constructor Description MockBuildRunnerDescriptor()
-
Method Summary
-
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:ParametersDescriptor
Returns unique id of this descriptor- Specified by:
getId
in interfaceParametersDescriptor
- Returns:
- unique id of this descriptor
-
withId
public MockBuildRunnerDescriptor withId(@NotNull String id)
-
getName
@NotNull public String getName()
- Specified by:
getName
in interfaceBuildRunnerDescriptor
- Returns:
- build runner descriptor name, defined by the user
-
withName
public MockBuildRunnerDescriptor withName(@NotNull String name)
-
getType
@NotNull public String getType()
Description copied from interface:ParametersDescriptor
Returns type of the parameters- Specified by:
getType
in interfaceParametersDescriptor
- Returns:
- parameters type
-
withType
public MockBuildRunnerDescriptor withType(@NotNull String type)
-
getOwnBuildParameters
@NotNull public Map<String,String> getOwnBuildParameters()
- Specified by:
getOwnBuildParameters
in interfaceBuildRunnerDescriptor
- Returns:
- map of build parameters (system., env. or configuration parameters)
-
withOwnBuildParameter
public MockBuildRunnerDescriptor withOwnBuildParameter(String name, String value)
-
getParameters
@NotNull public Map<String,String> getParameters()
Description copied from interface:ParametersDescriptor
Returns parameters map.- Specified by:
getParameters
in interfaceParametersDescriptor
- Returns:
- parameters map
-
withParameter
public MockBuildRunnerDescriptor withParameter(String name, String value)
-
withParameters
public MockBuildRunnerDescriptor withParameters(Map<String,String> parameters)
-
getRunType
@NotNull public RunType getRunType()
Description copied from interface:SBuildRunnerDescriptor
Return object representing type of the build runner- Specified by:
getRunType
in interfaceSBuildRunnerDescriptor
- Returns:
- see above
-
getRunTypeWithExtensions
@NotNull public RunTypeWithExtensions getRunTypeWithExtensions()
- Specified by:
getRunTypeWithExtensions
in interfaceSBuildRunnerDescriptor
- Returns:
- object representing run type with extensions
-
getRunTypeRequirements
@NotNull public Collection<Requirement> getRunTypeRequirements()
Description copied from interface:SBuildRunnerDescriptor
Returns additional agent requirements imposed by runner.- Specified by:
getRunTypeRequirements
in interfaceSBuildRunnerDescriptor
- Returns:
- see above
-
getInvalidProperties
@NotNull public Collection<InvalidProperty> getInvalidProperties()
- Specified by:
getInvalidProperties
in interfaceSBuildRunnerDescriptor
- Returns:
- collection of invalid properties from extended run type properties processor
- See Also:
RunTypeBase.getRunnerPropertiesProcessor()
-
getFullDisplayName
public String getFullDisplayName()
Description copied from interface:SBuildRunnerDescriptor
Return full step name including the name specified by user + the runner type name afterwards. If user did not specify name, the name of the runner type returned.Thus, if the step named Foo, the returned value may be Foo (Command Line)
- Specified by:
getFullDisplayName
in interfaceSBuildRunnerDescriptor
- Returns:
- see above
-
-