[Java] Class ScriptRunner
- org.apache.groovy.util.ScriptRunner
public class ScriptRunner extends Object
The tool to simulate running script files via groovy command
- Since:
- 3.0.0
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public static void |
runScript(File path) Run the script file specified by the file path | |
public static void |
runScript(String cp) Run the script file specified by the classpath |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
public static void runScript(File path)
Run the script file specified by the file path
- Parameters:
-
path
- the file
- Since:
- 3.0.0
public static void runScript(String cp)
Run the script file specified by the classpath
- Parameters:
-
cp
- the classpath
- Since:
- 3.0.0
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/util/ScriptRunner.html