|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.command.Command
com.atlassian.bamboo.builder.AbstractBuilder
com.atlassian.bamboo.builder.ScriptBuilder
public class ScriptBuilder
This class provides a command line Script version of Builder.
| Field Summary | |
|---|---|
static String |
DEFAULT_EXECUTOR
|
static String |
KEY
|
static String |
KEY_PREFIX
|
static String |
NAME
|
static String |
PARAM_ARG
|
static String |
PARAM_SCRIPT
|
| Fields inherited from class com.atlassian.bamboo.builder.AbstractBuilder |
|---|
builderManager, DEFAULT_TEST_REPORTS_XML, PARAM_BUILD_LABEL, PARAM_BUILDJDK, PARAM_ENV_VAR, PARAM_HASTESTS, PARAM_HOME, PARAM_TEST_RESULTS_DIRECTORY, PARAM_WORKING_SUB_DIR, pluginManager, templateRenderer, velocityManager |
| Constructor Summary | |
|---|---|
ScriptBuilder()
|
|
| Method Summary | |
|---|---|
Map |
addDefaultLabelPathMaps(Map labelPathMaps)
|
void |
addDefaultValues(BuildConfiguration configuration)
|
Map |
customiseLabelPathMaps(Map labelPathMaps)
Allows the builder to add extra LabelPathMap objects as required |
String |
getArgument()
|
Commandline |
getCommandLine()
Get the command line to execite the ant build Note we have to execute windows different an Windoz can't execute a batch file... |
Map |
getFullParams()
Subclasses should extend this method rather than Builder.getFilteredParams() since it calls back on this method
(getFillParams) |
String |
getKey()
|
String |
getName()
|
String |
getScript()
What is the name of the build script to be executed |
String |
getUrl()
|
boolean |
isLabelPathMapConfigurable()
Returns true if the Builder can have its LabelPathMap configurable. |
boolean |
isPathValid(String path)
Returns true if the passed path is valid for this builder. |
void |
setArgument(String argument)
|
void |
setParams(FilteredMap filteredParams)
|
void |
setScript(String script)
Specify the script to be executed by the build |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
ErrorCollection |
validate(FilteredMap filteredBuilderParams)
Validate that the scripts mandatory fields have been defined correctly |
| Methods inherited from class com.atlassian.bamboo.command.Command |
|---|
executeCommand, getEnvironmentSetting, getErrorOutput, getOutput, hasErrors, isExecutableExists, isWindowsPlatform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_EXECUTOR
public static final String NAME
public static final String KEY
public static final String KEY_PREFIX
public static final String PARAM_SCRIPT
public static final String PARAM_ARG
| Constructor Detail |
|---|
public ScriptBuilder()
| Method Detail |
|---|
public String getName()
public String getKey()
public String getUrl()
public String getScript()
public void setScript(String script)
script - The script file to executepublic Commandline getCommandLine()
getCommandLine in class Commandpublic ErrorCollection validate(FilteredMap filteredBuilderParams)
public ErrorCollection validate(BuildConfiguration buildConfiguration)
public void addDefaultValues(BuildConfiguration configuration)
public Map getFullParams()
BuilderBuilder.getFilteredParams() since it calls back on this method
(getFillParams)
getFullParams in interface BuildergetFullParams in class AbstractBuilderpublic void setParams(FilteredMap filteredParams)
setParams in interface BuildersetParams in class AbstractBuilderpublic boolean isPathValid(String path)
Builder
public boolean isLabelPathMapConfigurable()
BuilderLabelPathMap configurable. If it can't be, it won't be displayed
on the ConfigureBuilder page.
isLabelPathMapConfigurable in interface BuilderisLabelPathMapConfigurable in class AbstractBuilderLabelPathMap is configurablepublic Map customiseLabelPathMaps(Map labelPathMaps)
BuilderLabelPathMap objects as required
customiseLabelPathMaps in interface BuildercustomiseLabelPathMaps in class AbstractBuilderlabelPathMaps - may be nullpublic Map addDefaultLabelPathMaps(Map labelPathMaps)
public String getArgument()
public void setArgument(String argument)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||