|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.command.Command com.atlassian.bamboo.builder.AbstractBuilder com.atlassian.bamboo.builder.AntBuilder
@Deprecated public class AntBuilder
This class provides an Ant version of Builder
.
Field Summary | |
---|---|
static java.lang.String |
NAME
Deprecated. |
static java.lang.String |
PARAM_BUILD_FILE
Deprecated. |
static java.lang.String |
PARAM_TARGET
Deprecated. |
static java.lang.String |
PATHHELP
Deprecated. |
Fields inherited from class com.atlassian.bamboo.command.Command |
---|
buildLoggerManager, customVariableContext |
Fields inherited from interface com.atlassian.bamboo.builder.Builder |
---|
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE |
Constructor Summary | |
---|---|
AntBuilder()
Deprecated. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,LabelPathMap> |
addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
Deprecated. |
void |
addDefaultValues(BuildConfiguration configuration)
Deprecated. Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
void |
executeBuild(BuildContext buildContext,
ReadOnlyCapabilitySet capabilitySet)
Deprecated. Runs the build, and updates the build results in the build context. |
java.lang.String |
getBuildFile()
Deprecated. Which build file are we using |
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
Deprecated. What are the arguments for the command line to execute |
java.lang.String |
getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
Deprecated. What is the executable for the command line to execute |
protected java.lang.String[] |
getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
Deprecated. |
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Deprecated. Gets the full params that's used to persist. |
java.lang.String |
getName()
Deprecated. Returns a human readable version of the current Builder type |
java.lang.String |
getPath(ReadOnlyCapabilitySet capabilitySet)
Deprecated. The home path of the builder's command line |
java.lang.String |
getPathHelp()
Deprecated. Return text that will appear as a description under a chosen builder in the "Add Capability" screen |
java.lang.String |
getTarget()
Deprecated. Which task does the build execute? |
java.lang.String |
getUrl()
Deprecated. assume we are not using these anymore - andy? |
boolean |
hasPassed(int returnCode,
int buildNumber,
java.lang.String planKey)
Deprecated. Determines based on the return code and/or logs whether the build has passed. |
boolean |
isPathValid(java.lang.String homeDirectory)
Deprecated. Does the home dir contain /bin/ant? |
void |
setBuildFile(java.lang.String buildFile)
Deprecated. Set the ant build file |
void |
setParams(FilteredMap filteredBuilderParams)
Deprecated. Updates the current builder object with |
void |
setTarget(java.lang.String target)
Deprecated. Define the the task that the build will execute. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Deprecated. Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredParams)
Deprecated. Check that the builder's mandatory properties have been configured correctly. |
Methods inherited from class com.atlassian.bamboo.command.Command |
---|
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getEnvironmentSetting, getSubstitutedCommandLine, isWindowsPlatform, setBuildLoggerManager, setCustomVariableContext, setPluginAccessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
public static final java.lang.String PATHHELP
public static final java.lang.String PARAM_TARGET
public static final java.lang.String PARAM_BUILD_FILE
Constructor Detail |
---|
public AntBuilder()
Method Detail |
---|
public void executeBuild(@NotNull BuildContext buildContext, ReadOnlyCapabilitySet capabilitySet) throws java.lang.InterruptedException, RepositoryException
BuilderV2
executeBuild
in interface BuilderV2
executeBuild
in class AbstractBuilder
java.lang.InterruptedException
RepositoryException
@NotNull public java.lang.String getName()
Builder
@NotNull public java.lang.String getPathHelp()
AbstractBuilder
getPathHelp
in interface Builder
getPathHelp
in class AbstractBuilder
public void setParams(@NotNull FilteredMap filteredBuilderParams)
Builder
setParams
in interface Builder
setParams
in class AbstractBuilder
filteredBuilderParams
- - Filtered Map with the prefix builder key stripped outpublic java.lang.String getUrl()
public boolean hasPassed(int returnCode, int buildNumber, java.lang.String planKey)
BuilderV2
hasPassed
in interface BuilderV2
hasPassed
in class AbstractBuilder
returnCode
- return code from build execution commandplanKey
- @return true if build has passed@NotNull public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
getCommandExecutable
in class Command
capabilitySet
- - for the local context
@NotNull public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
getCommandArguments
in class Command
capabilitySet
- - for the local context
protected java.lang.String[] getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
getCustomEnvironmentVars
in class Command
public void setBuildFile(java.lang.String buildFile)
buildFile
- name of the build's build filepublic java.lang.String getBuildFile()
public void setTarget(java.lang.String target)
target
- The build task/goalpublic java.lang.String getTarget()
@NotNull public java.lang.String getPath(ReadOnlyCapabilitySet capabilitySet)
Builder
getPath
in interface Builder
getPath
in class AbstractBuilder
@NotNull public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Builder
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public ErrorCollection validate(FilteredMap filteredParams)
validate
in class AbstractBuilder
filteredParams
-
@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
buildConfiguration
- - @NotNull
ErrorCollection
keyed by the field name. @NotNullpublic void addDefaultValues(@NotNull BuildConfiguration configuration)
BuildConfigurationAwarePlugin
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
configuration
- - @NotNullpublic java.util.Map<java.lang.String,LabelPathMap> addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
public boolean isPathValid(@Nullable java.lang.String homeDirectory)
homeDirectory
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |