|
||||||||||
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.AbstractJdkBuilder com.atlassian.bamboo.builder.AntBuilder
public class AntBuilder
This class provides an Ant version of Builder
.
Field Summary | |
---|---|
protected java.lang.String |
myAntHome
|
static java.lang.String |
NAME
|
static java.lang.String |
PARAM_BUILD_FILE
|
static java.lang.String |
PARAM_TARGET
|
static java.lang.String |
PATHHELP
|
Fields inherited from class com.atlassian.bamboo.command.Command |
---|
buildLoggerManager, substitutionBean |
Fields inherited from interface com.atlassian.bamboo.builder.Builder |
---|
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE |
Constructor Summary | |
---|---|
AntBuilder()
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,LabelPathMap> |
addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
|
void |
addDefaultValues(BuildConfiguration configuration)
Extension point for adding default values to the form for ConfigurablePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
java.lang.String |
getBuildFile()
Which build file are we using |
java.lang.String[] |
getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
What are the arguments for the command line to execute |
java.lang.String |
getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
What is the executable for the command line to execute |
protected java.lang.String[] |
getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
|
java.util.Map<java.lang.String,java.lang.String> |
getFullParams()
Gets the full params that's used to persist. |
java.lang.String |
getName()
Returns a human readable version of the current Builder type |
java.lang.String |
getPath(ReadOnlyCapabilitySet capabilitySet)
The home path of the builder's command line |
java.lang.String |
getPathHelp()
Help text for the builder type |
java.lang.String |
getTarget()
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)
Determines based on the return code and/or logs whether the build has passed. |
boolean |
isPathValid(java.lang.String homeDirectory)
Does the home dir contain /bin/ant? |
void |
setBuildFile(java.lang.String buildFile)
Set the ant build file |
void |
setParams(FilteredMap filteredBuilderParams)
Updates the current builder object with |
void |
setTarget(java.lang.String target)
Define the the task that the build will execute. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
ErrorCollection |
validate(FilteredMap filteredParams)
Check that the builder's mandatory properties have been configured correctly. |
Methods inherited from class com.atlassian.bamboo.builder.AbstractJdkBuilder |
---|
customizeBuildRequirements, removeBuildRequirements |
Methods inherited from class com.atlassian.bamboo.command.Command |
---|
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getEnvironmentSetting, getSubstitutedCommandLine, getVariableSubstitutionBean, isWindowsPlatform, setBuildLoggerManager, setPluginAccessor, setVariableSubstitutionBean |
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
protected transient java.lang.String myAntHome
public static final java.lang.String PARAM_TARGET
public static final java.lang.String PARAM_BUILD_FILE
Constructor Detail |
---|
public AntBuilder()
Method Detail |
---|
@NotNull public java.lang.String getName()
Builder
@NotNull public java.lang.String getPathHelp()
Builder
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)
ConfigurablePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in ConfigurablePlugin.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)
ConfigurablePlugin
ConfigurablePlugin.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 |