Class Maven2CapabilityDefaultsHelper
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractFileCapabilityDefaultsHelper
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractHomeDirectoryCapabilityDefaultsHelper
-
- com.atlassian.bamboo.plugins.maven.task.Maven2CapabilityDefaultsHelper
-
- All Implemented Interfaces:
BambooPluginModule
,CapabilityDefaultsHelper
public class Maven2CapabilityDefaultsHelper extends AbstractHomeDirectoryCapabilityDefaultsHelper
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityDefaultsHelper
CAPABILITY_AGENT_ENVIRONMENT_PREFIX, CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
-
-
Constructor Summary
Constructors Constructor Description Maven2CapabilityDefaultsHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull CapabilitySet
addDefaultCapabilities(@NotNull CapabilitySet capabilitySet)
Adds default Capabilities for this module.protected @NotNull String
getCapabilityKey()
protected @Nullable String
getEnvHome()
protected @NotNull String
getExecutableName()
protected @NotNull String
getPosixHome()
protected @NotNull List<String>
getPosixHomes()
protected com.google.common.base.Predicate<File>
getValidityPredicate()
-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractHomeDirectoryCapabilityDefaultsHelper
createCapability
-
-
-
-
Method Detail
-
addDefaultCapabilities
@NotNull public @NotNull CapabilitySet addDefaultCapabilities(@NotNull @NotNull CapabilitySet capabilitySet)
Description copied from interface:CapabilityDefaultsHelper
Adds default Capabilities for this module. Used during auto-detecting server capabilities.- Specified by:
addDefaultCapabilities
in interfaceCapabilityDefaultsHelper
- Overrides:
addDefaultCapabilities
in classAbstractFileCapabilityDefaultsHelper
- Parameters:
capabilitySet
- to add the capability to- Returns:
- the supplied capabilitySet with the new capabilities included if found, else the given capabilitySet
-
getExecutableName
@NotNull protected @NotNull String getExecutableName()
- Specified by:
getExecutableName
in classAbstractFileCapabilityDefaultsHelper
-
getEnvHome
@Nullable protected @Nullable String getEnvHome()
- Overrides:
getEnvHome
in classAbstractFileCapabilityDefaultsHelper
-
getPosixHomes
@NotNull protected @NotNull List<String> getPosixHomes()
- Overrides:
getPosixHomes
in classAbstractFileCapabilityDefaultsHelper
-
getPosixHome
@NotNull protected @NotNull String getPosixHome()
- Overrides:
getPosixHome
in classAbstractFileCapabilityDefaultsHelper
-
getCapabilityKey
@NotNull protected @NotNull String getCapabilityKey()
- Specified by:
getCapabilityKey
in classAbstractFileCapabilityDefaultsHelper
-
getValidityPredicate
protected com.google.common.base.Predicate<File> getValidityPredicate()
- Overrides:
getValidityPredicate
in classAbstractFileCapabilityDefaultsHelper
-
-