com.atlassian.bamboo.plugins.grails
Class GrailsCommand
java.lang.Object
com.atlassian.bamboo.command.Command
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'
Constructor Summary |
GrailsCommand(java.io.File workingDirectory,
java.lang.String commandExecutable,
java.lang.String grailsCommand,
java.lang.String executablePath)
|
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 |
GrailsCommand
public GrailsCommand(java.io.File workingDirectory,
java.lang.String commandExecutable,
java.lang.String grailsCommand,
java.lang.String executablePath)
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.