|
||||||||||
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.AbstractMavenBuilder
public abstract class AbstractMavenBuilder
Field Summary | |
---|---|
static String |
CUSTOM_TEST_DIRECTORY_SELECTED
|
protected String |
myGoal
|
protected String |
myMavenHome
|
protected String |
myTestDirectoryOption
|
static String |
PARAM_GOAL
|
static String |
PARAM_TEST_DIRECTORY_OPTION
|
static String |
STANDARD_TEST_DIRECTORY_SELECTED
|
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 | |
---|---|
AbstractMavenBuilder()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration configuration)
|
Commandline |
getCommandLine()
Get the maven command line to execute the build |
protected abstract String |
getDefaultTestReportsDirectory()
|
protected abstract String |
getExecutableFileName()
Gets the executable file name |
Map |
getFullParams()
Subclasses should extend this method rather than Builder.getFilteredParams() since it calls back on this method
(getFillParams) |
String |
getGoal()
Which goal will maven use to build the build? |
protected String |
getMavenExecutablePath(String homePath)
|
protected Map |
getTemplateContext()
|
String |
getTestDirectory()
Which test directory option are we using "standardTestDirectory:, or a "customTestDirectory" |
String |
getTestResultsDirectory()
Return the default |
protected boolean |
hasPassed(int returnCode)
|
boolean |
isPathValid(String homeDirectory)
Does the home dir contain /bin/ant? |
void |
setGoal(String goal)
Set the goal that the build will execute. |
void |
setParams(FilteredMap filteredBuilderParams)
|
void |
setTestDirectory(String testDirectory)
Let the UI specify which test directory option we're using - standard or custom. |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
ErrorCollection |
validate(FilteredMap filteredParams)
Validate that the goal has been defined |
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 |
Methods inherited from interface com.atlassian.bamboo.builder.Builder |
---|
addDefaultLabelPathMaps, getKey, getName |
Field Detail |
---|
protected transient String myMavenHome
protected String myGoal
protected String myTestDirectoryOption
public static final String PARAM_GOAL
public static final String PARAM_TEST_DIRECTORY_OPTION
public static final String CUSTOM_TEST_DIRECTORY_SELECTED
public static final String STANDARD_TEST_DIRECTORY_SELECTED
Constructor Detail |
---|
public AbstractMavenBuilder()
Method Detail |
---|
protected boolean hasPassed(int returnCode)
hasPassed
in class AbstractBuilder
public Commandline getCommandLine()
getCommandLine
in class Command
protected String getMavenExecutablePath(String homePath)
protected abstract String getExecutableFileName()
public void setGoal(String goal)
goal
- The maven goalpublic String getGoal()
public String getTestResultsDirectory()
getTestResultsDirectory
in interface Builder
getTestResultsDirectory
in class AbstractBuilder
protected abstract String getDefaultTestReportsDirectory()
public String getTestDirectory()
public void setTestDirectory(String testDirectory)
testDirectory
- public void setParams(FilteredMap filteredBuilderParams)
setParams
in interface Builder
setParams
in class AbstractBuilder
public ErrorCollection validate(FilteredMap filteredParams)
filteredParams
-
public ErrorCollection validate(BuildConfiguration buildConfiguration)
public void addDefaultValues(BuildConfiguration configuration)
public Map getFullParams()
Builder
Builder.getFilteredParams()
since it calls back on this method
(getFillParams)
getFullParams
in interface Builder
getFullParams
in class AbstractBuilder
public boolean isPathValid(String homeDirectory)
homeDirectory
-
protected Map getTemplateContext()
getTemplateContext
in class AbstractBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |