org.codehaus.groovy.grails.cli
Class GrailsScriptRunner
java.lang.Object
org.codehaus.groovy.grails.cli.GrailsScriptRunner
public class GrailsScriptRunner
- extends Object
Handles Grails command line interface for running scripts.
- Since:
- 0.4
- Author:
- Graeme Rocher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsScriptRunner
public GrailsScriptRunner()
GrailsScriptRunner
public GrailsScriptRunner(String grailsHome)
GrailsScriptRunner
public GrailsScriptRunner(grails.util.BuildSettings settings)
main
public static void main(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
-
getOut
public PrintStream getOut()
setOut
public void setOut(PrintStream outputStream)
executeCommand
public int executeCommand(String scriptName,
String args)
executeCommand
public int executeCommand(String scriptName,
String args,
String env)