com.atlassian.bamboo.plugins.grails
Class GrailsCommand

java.lang.Object
  extended by com.atlassian.bamboo.command.Command
      extended by com.atlassian.bamboo.plugins.grails.GrailsCommand
Direct Known Subclasses:
GrailsUpgradeCommand

public class GrailsCommand
extends Command

Represents a single Grails command such as 'war' or 'test-app'


Field Summary
 
Fields inherited from class com.atlassian.bamboo.command.Command
buildLoggerManager, substitutionBean
 
Constructor Summary
GrailsCommand(java.io.File workingDirectory, java.lang.String commandExecutable, java.lang.String grailsCommand, java.lang.String executablePath)
           
 
Method Summary
 java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
          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)
          What is the executable for the command line to execute.
 java.lang.String getGrailsCommand()
           
 java.io.File getWorkingDirectory()
          Where should the command be executed?
 
Methods inherited from class com.atlassian.bamboo.command.Command
decorateCommandLine, executeCommand, getBuildLoggerManager, getCommandLine, getCustomEnvironmentVars, getEnvironmentSetting, getSubstitutedCommandLine, getVariableSubstitutionBean, isWindowsPlatform, setBuildLoggerManager, setPluginAccessor, setVariableSubstitutionBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsCommand

public GrailsCommand(java.io.File workingDirectory,
                     java.lang.String commandExecutable,
                     java.lang.String grailsCommand,
                     java.lang.String executablePath)
Method Detail

getWorkingDirectory

public java.io.File getWorkingDirectory()
Description copied from class: Command
Where should the command be executed?

Specified by:
getWorkingDirectory in class Command
Returns:
The directory in which the command will be run

getCommandArguments

@NotNull
public java.lang.String[] getCommandArguments(ReadOnlyCapabilitySet capabilitySet)
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:
capabilitySet - - for the current context
Returns:
the executable as a string[]. Spaces/division of strings in the array should not matter.

getCommandExecutable

@NotNull
public java.lang.String getCommandExecutable(ReadOnlyCapabilitySet capabilitySet)
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

getGrailsCommand

public java.lang.String getGrailsCommand()


Copyright © 2010 Atlassian. All Rights Reserved.