Groovy Documentation

org.codehaus.groovy.grails.cli
[Java] 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.

Authors:
Graeme Rocher
Since:
0.4


Field Summary
static java.lang.String AGENT_FLAG

 
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)

java.io.PrintStream getOut()

protected boolean isDeclared(java.lang.Object cla, java.lang.reflect.Method readMethod)

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.

protected void makeApiAvailableToScripts(org.codehaus.gant.GantBinding binding, java.lang.Object cla)

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

AGENT_FLAG

public static final java.lang.String AGENT_FLAG


 
Constructor Detail

GrailsScriptRunner

public GrailsScriptRunner()


GrailsScriptRunner

public GrailsScriptRunner(java.lang.String grailsHome)


GrailsScriptRunner

public GrailsScriptRunner(BuildSettings settings)


 
Method Detail

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)


getOut

public java.io.PrintStream getOut()


isDeclared

protected boolean isDeclared(java.lang.Object cla, java.lang.reflect.Method readMethod)


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


makeApiAvailableToScripts

protected void makeApiAvailableToScripts(org.codehaus.gant.GantBinding binding, java.lang.Object cla)


setOut

public void setOut(java.io.PrintStream outputStream)


 

Groovy Documentation