|
||||||||||
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.AntBuilder
public class AntBuilder
This class provides an Ant version of Builder
.
Field Summary | |
---|---|
static String |
KEY
|
static String |
KEY_PREFIX
|
protected String |
myAntHome
|
static String |
NAME
|
static String |
PARAM_BUILD_FILE
|
static String |
PARAM_TARGET
|
static String |
PATHHELP
|
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 | |
---|---|
AntBuilder()
|
Method Summary | |
---|---|
Map |
addDefaultLabelPathMaps(Map labelPathMaps)
|
void |
addDefaultValues(BuildConfiguration configuration)
|
String |
getBuildFile()
Which build file are we using |
Commandline |
getCommandLine()
Get the command line to execite the ant build |
Map |
getFullParams()
Subclasses should extend this method rather than Builder.getFilteredParams() since it calls back on this method
(getFillParams) |
String |
getKey()
|
String |
getName()
|
String |
getPath()
The home path of the builder's command line |
String |
getPathHelp()
|
String |
getTarget()
Which task does the build execute? |
String |
getUrl()
Deprecated. assume we are not using these anymore - andy? |
protected boolean |
hasPassed(int returnCode)
|
boolean |
isPathValid(String homeDirectory)
Does the home dir contain /bin/ant? |
void |
setBuildFile(String buildFile)
Set the ant build file |
void |
setParams(FilteredMap filteredBuilderParams)
|
void |
setTarget(String target)
Define the the task that the build will execute. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
ErrorCollection |
validate(FilteredMap filteredParams)
Check that the builder's mandatory properties have been configured 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 KEY
public static final String NAME
public static final String PATHHELP
protected transient String myAntHome
public static final String PARAM_TARGET
public static final String PARAM_BUILD_FILE
public static final String KEY_PREFIX
Constructor Detail |
---|
public AntBuilder()
Method Detail |
---|
public String getName()
public String getKey()
public String getPathHelp()
getPathHelp
in interface Builder
getPathHelp
in class AbstractBuilder
public void setParams(FilteredMap filteredBuilderParams)
setParams
in interface Builder
setParams
in class AbstractBuilder
public String getUrl()
protected boolean hasPassed(int returnCode)
hasPassed
in class AbstractBuilder
public Commandline getCommandLine()
getCommandLine
in class Command
public void setBuildFile(String buildFile)
buildFile
- name of the build's build filepublic String getBuildFile()
public void setTarget(String target)
target
- The build task/goalpublic String getTarget()
public String getPath()
Builder
getPath
in interface Builder
getPath
in class AbstractBuilder
public Map getFullParams()
Builder
Builder.getFilteredParams()
since it calls back on this method
(getFillParams)
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public ErrorCollection validate(FilteredMap filteredParams)
filteredParams
-
public ErrorCollection validate(BuildConfiguration buildConfiguration)
public void addDefaultValues(BuildConfiguration configuration)
public Map addDefaultLabelPathMaps(Map labelPathMaps)
public boolean isPathValid(String homeDirectory)
homeDirectory
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |