com.atlassian.bamboo.plugins.grails
Class GrailsBuilder

java.lang.Object
  extended by com.atlassian.bamboo.command.Command
      extended by com.atlassian.bamboo.builder.AbstractBuilder
          extended by com.atlassian.bamboo.plugins.grails.GrailsBuilder
All Implemented Interfaces:
Builder, EnvironmentVariablesAwareBuilder, MutableEnvironmentVariablesAwareBuilder, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, BuilderV2, ConfigurablePlugin, RenderableBuildConfiguration, java.io.Serializable

Deprecated.

@Deprecated
public class GrailsBuilder
extends AbstractBuilder

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.builder.AbstractBuilder
BUILD_FAILED_MARKER, BUILD_SUCCESSFUL_MARKER, buildDirectoryManager, DEFAULT_TEST_REPORTS_XML, errorUpdateHandler, FIND_FAILURE_MESSAGE_IN_LAST, FIND_SUCCESS_MESSAGE_IN_LAST, PARAM_BUILD_LABEL, PARAM_BUILDJDK, PARAM_ENV_VAR, PARAM_HASTESTS, PARAM_HOME, PARAM_PROJECT_FILE, PARAM_TEST_RESULTS_DIRECTORY, PARAM_WORKING_SUB_DIR, SEARCH_BUILD_SUCCESS_FAIL_MESSAGE_EVERYWHERE, templateRenderer
 
Fields inherited from class com.atlassian.bamboo.command.Command
buildLoggerManager
 
Fields inherited from interface com.atlassian.bamboo.builder.Builder
CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
 
Constructor Summary
GrailsBuilder()
          Deprecated.  
 
Method Summary
 void addAdditionalCommand(java.lang.String command)
          Deprecated. Prepends a command to run before user defined commands
 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.util.Collection<java.lang.String> getAdditionalCommands()
          Deprecated.  
 java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet readOnlyCapabilitySet)
          Deprecated. What are the arguments for the command line to execute Variable substitution is not required for the arguments, substitution will be performed later.
 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.  
protected  java.lang.String getDefaultTestReportsDirectory()
          Deprecated.  
protected  java.lang.String getExecutableFileName()
          Deprecated.  
 java.util.Map<java.lang.String,java.lang.String> getFullParams()
          Deprecated. Gets the full params that's used to persist.
 java.lang.String getGoal()
          Deprecated.  
 java.lang.String getName()
          Deprecated. Returns a human readable version of the current Builder type
protected  java.util.Map getTemplateContext()
          Deprecated.  
 java.lang.String getTestDirectory()
          Deprecated.  
 boolean isPathValid(java.lang.String homeDirectory)
          Deprecated. Returns true if the passed path is valid for this builder.
 CurrentBuildResult runBuild(BuildContext buildContext, ReadOnlyCapabilitySet capabilitySet)
          Deprecated.  
 void setCustomVariableContext(CustomVariableContext customVariableContext)
          Deprecated.  
 void setGoal(java.lang.String goal)
          Deprecated.  
 void setParams(FilteredMap filteredBuilderParams)
          Deprecated. Updates the current builder object with
 void setTestDirectory(java.lang.String testDirectory)
          Deprecated.  
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
          Deprecated.  
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Deprecated. Validates the properties in the BuildConfiguration object.
protected  ErrorCollection validate(FilteredMap<java.lang.String> filteredParams)
          Deprecated.  
 
Methods inherited from class com.atlassian.bamboo.builder.AbstractBuilder
collateTestResults, customiseLabelTypeMap, customizeBuildRequirements, getBuildDir, getBuildDirectoryManager, getBuildJdk, getCapabilityPrefix, getCompleteKey, getEditHtml, getEnvironmentVariables, getFilteredParams, getKey, getKeyPrefix, getLabel, getPath, getPathHelp, getProjectFile, getSubstitutedEnvironmentVariables, getTestChecked, getTestResultsDirectory, getViewHtml, getWorkingDirectory, getWorkingSubDirectory, hasPassed, hasTests, init, isJdkValid, isLabelPathMapConfigurable, outputEndsWith, populateBuildErrors, prepareConfigObject, removeAllSystemJdkRequirements, removeBuildRequirements, setAdministrationConfiguration, setBuildDir, setBuildDirectoryManager, setBuildJdk, setBuildLogFileAccessorFactory, setEnvironmentVariables, setErrorUpdateHandler, setHasTests, setJdkManager, setKey, setLabel, setProjectFile, setTemplateRenderer, setTestChecked, setTestResultsDirectory, setWorkingSubDirectory, toString, validate
 
Methods inherited from class com.atlassian.bamboo.command.Command
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getEnvironmentSetting, getSubstitutedCommandLine, isWindowsPlatform, setBuildLoggerManager, setPluginAccessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrailsBuilder

public GrailsBuilder()
Deprecated. 
Method Detail

executeBuild

public void executeBuild(@NotNull
                         BuildContext buildContext,
                         ReadOnlyCapabilitySet capabilitySet)
                  throws java.lang.InterruptedException,
                         RepositoryException
Deprecated. 
Description copied from interface: BuilderV2
Runs the build, and updates the build results in the build context. This method is also responsible for collating the test results in a build

Specified by:
executeBuild in interface BuilderV2
Overrides:
executeBuild in class AbstractBuilder
Throws:
java.lang.InterruptedException
RepositoryException

runBuild

public CurrentBuildResult runBuild(@NotNull
                                   BuildContext buildContext,
                                   @NotNull
                                   ReadOnlyCapabilitySet capabilitySet)
                            throws java.lang.InterruptedException
Deprecated. 
Overrides:
runBuild in class AbstractBuilder
Throws:
java.lang.InterruptedException

addAdditionalCommand

public void addAdditionalCommand(java.lang.String command)
Deprecated. 
Prepends a command to run before user defined commands

Parameters:
command -

getAdditionalCommands

public java.util.Collection<java.lang.String> getAdditionalCommands()
Deprecated. 

validate

protected ErrorCollection validate(FilteredMap<java.lang.String> filteredParams)
Deprecated. 
Specified by:
validate in class AbstractBuilder

getName

@NotNull
public java.lang.String getName()
Deprecated. 
Description copied from interface: Builder
Returns a human readable version of the current Builder type

Returns:

setParams

public void setParams(@NotNull
                      FilteredMap filteredBuilderParams)
Deprecated. 
Description copied from interface: Builder
Updates the current builder object with

Specified by:
setParams in interface Builder
Overrides:
setParams in class AbstractBuilder
Parameters:
filteredBuilderParams - - Filtered Map with the prefix builder key stripped out

setGoal

public void setGoal(java.lang.String goal)
Deprecated. 

getGoal

public java.lang.String getGoal()
Deprecated. 

setTestDirectory

public void setTestDirectory(java.lang.String testDirectory)
Deprecated. 

getTestDirectory

public java.lang.String getTestDirectory()
Deprecated. 

getTemplateContext

protected java.util.Map getTemplateContext()
Deprecated. 
Overrides:
getTemplateContext in class AbstractBuilder

addDefaultLabelPathMaps

public java.util.Map<java.lang.String,LabelPathMap> addDefaultLabelPathMaps(java.util.Map<java.lang.String,LabelPathMap> labelPathMaps)
Deprecated. 
Returns:

isPathValid

public boolean isPathValid(java.lang.String homeDirectory)
Deprecated. 
Description copied from interface: Builder
Returns true if the passed path is valid for this builder. The definition of a path depends on the builder itself. It could be the path to the executable (e.g script builder) or just the home directory (e.g. Ant builder)

Returns:
true if valid

addDefaultValues

public void addDefaultValues(@NotNull
                             BuildConfiguration configuration)
Deprecated. 
Description copied from interface: BuildConfigurationAwarePlugin
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)

Parameters:
configuration - - @NotNull

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration buildConfiguration)
Deprecated. 
Description copied from interface: BuildConfigurationAwarePlugin
Validates the properties in the 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.

Parameters:
buildConfiguration - - @NotNull
Returns:
ErrorCollection keyed by the field name. @NotNull

getFullParams

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getFullParams()
Deprecated. 
Description copied from interface: Builder
Gets the full params that's used to persist.

Specified by:
getFullParams in interface Builder
Overrides:
getFullParams in class AbstractBuilder
Returns:
Map key by the full param key (e.g. builder.ant.label). Never null

getCommandExecutable

@NotNull
public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
Deprecated. 
Description copied from class: Command
What is the executable for the command line to execute. Variable substitution is not required for exectutable, substitution will be performed later.

Overrides:
getCommandExecutable in class Command
Returns:
the executable as a string

getCommandArguments

@NotNull
public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet readOnlyCapabilitySet)
Deprecated. 
Description copied from class: Command
What are the arguments for the command line to execute Variable substitution is not required for the arguments, substitution will be performed later.

Overrides:
getCommandArguments in class Command
Parameters:
readOnlyCapabilitySet - - for the current context
Returns:
the executable as a string[]. Spaces/division of strings in the array should not matter.

getDefaultTestReportsDirectory

protected java.lang.String getDefaultTestReportsDirectory()
Deprecated. 

getCustomEnvironmentVars

protected java.lang.String[] getCustomEnvironmentVars(ReadOnlyCapabilitySet capabilitySet)
Deprecated. 
Overrides:
getCustomEnvironmentVars in class Command

getExecutableFileName

protected java.lang.String getExecutableFileName()
Deprecated. 

setTextProvider

public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
Deprecated. 

setCustomVariableContext

public void setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated. 
Overrides:
setCustomVariableContext in class Command


Copyright © 2011 Atlassian. All Rights Reserved.