|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.cli.GrailsScriptRunner
public class GrailsScriptRunner extends java.lang.Object
Handles Grails command line interface for running scripts.
Field Summary | |
---|---|
static groovy.lang.Closure |
DO_NOTHING_CLOSURE
|
Constructor Summary | |
GrailsScriptRunner()
|
|
GrailsScriptRunner(java.lang.String grailsHome)
|
|
GrailsScriptRunner(BuildSettings settings)
|
Method Summary | |
---|---|
int
|
executeCommand(java.lang.String scriptName, java.lang.String args)
|
int
|
executeCommand(java.lang.String scriptName, java.lang.String args, java.lang.String env)
|
int
|
executeScriptWithCaching(CommandLine commandLine)
|
java.util.List
|
getAvailableScripts()
Returns a list of all the executable Gant scripts available to this application. |
static CommandLineParser
|
getCommandLineParser()
|
java.io.PrintStream
|
getOut()
|
protected void
|
initializeLogging()
|
void
|
initializeState()
|
static void
|
main(java.lang.String[] args)
Evaluate the arguments to get the name of the script to execute, which environment to run it in, and the arguments to pass to the script. |
void
|
setInteractive(boolean interactive)
|
void
|
setOut(java.io.PrintStream outputStream)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
@SuppressWarnings("rawtypes") public static final groovy.lang.Closure DO_NOTHING_CLOSURE
Constructor Detail |
---|
public GrailsScriptRunner()
public GrailsScriptRunner(java.lang.String grailsHome)
public GrailsScriptRunner(BuildSettings settings)
Method Detail |
---|
public int executeCommand(java.lang.String scriptName, java.lang.String args)
public int executeCommand(java.lang.String scriptName, java.lang.String args, java.lang.String env)
public int executeScriptWithCaching(CommandLine commandLine)
public java.util.List getAvailableScripts()
public static CommandLineParser getCommandLineParser()
public java.io.PrintStream getOut()
protected void initializeLogging()
public void initializeState()
public static void main(java.lang.String[] args)
args
- Command line arguments
public void setInteractive(boolean interactive)
public void setOut(java.io.PrintStream outputStream)
Groovy Documentation