org.codehaus.groovy.grails.cli
Class GrailsScriptRunner
java.lang.Object
org.codehaus.groovy.grails.cli.GrailsScriptRunner
public class GrailsScriptRunner
- extends java.lang.Object
Handles Grails command line interface for running scripts.
- Since:
- 0.4
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DO_NOTHING_CLOSURE
public static final groovy.lang.Closure DO_NOTHING_CLOSURE
GrailsScriptRunner
public GrailsScriptRunner()
GrailsScriptRunner
public GrailsScriptRunner(java.lang.String grailsHome)
GrailsScriptRunner
public GrailsScriptRunner(grails.util.BuildSettings settings)
setInteractive
public void setInteractive(boolean interactive)
main
public 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. This also evaluates arguments
of the form "-Dprop=value" and creates system properties from each one.
- Parameters:
args - Command line arguments
getCommandLineParser
public static CommandLineParser getCommandLineParser()
getOut
public java.io.PrintStream getOut()
setOut
public void setOut(java.io.PrintStream outputStream)
executeCommand
public int executeCommand(java.lang.String scriptName,
java.lang.String args)
executeCommand
public int executeCommand(java.lang.String scriptName,
java.lang.String args,
java.lang.String env)
executeScriptWithCaching
public int executeScriptWithCaching(CommandLine commandLine)
initializeState
public void initializeState()
initializeLogging
protected void initializeLogging()
getAvailableScripts
public java.util.List<java.io.File> getAvailableScripts()
- Returns a list of all the executable Gant scripts available to this application.