Top Description Constructors Methods
org.apache.groovy.util

public Class ScriptRunner

extends Object
Class Inheritance
Imports
groovy.lang.GroovyRuntimeException, org.codehaus.groovy.tools.GroovyStarter, java.io.File, .IOException, java.net.URISyntaxException

The tool to simulate running script files via groovy command
Since
3.0.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
runScript(File
the file
path
)

Run the script file specified by the file path

public static void
runScript(String
the classpath
cp
)

Run the script file specified by the classpath

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ScriptRunnerback to summary
private ScriptRunner()

Method Detail

runScriptback to summary
public static void runScript(File path)

Run the script file specified by the file path

Parameters
path:File

the file

Since
3.0.0
runScriptback to summary
public static void runScript(String cp)

Run the script file specified by the classpath

Parameters
cp:String

the classpath

Since
3.0.0