@groovy.transform.CompileStatic class AbstractJRubyExecTask extends org.ysb33r.grolifant5.api.core.runnable.AbstractJvmScriptExecTask<JRubyExecSpec> implements JRubyExecOptions
Base class for setting up JRuby executions.
| Type | Name and description |
|---|---|
JRubyEnvironmentInheritance |
inheritRubyEnv |
| Constructor and description |
|---|
protected AbstractJRubyExecTask
(WorkerExecutor we) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
exec() |
|
JRubyEnvironmentInheritance |
getInheritRubyEnv()Allows for use script author to control the effect of the system Ruby environment. |
|
void |
setGemDirProvider(TaskProvider<? extends AbstractGemPrepareTask> task)Set directory where GEMs are installed. |
|
void |
setGemDirProvider(Provider<File> gdp)Set directory where GEMs are installed. |
|
void |
setInheritRubyEnv(JRubyEnvironmentInheritance mode)Allows for use script author to control the effect of the system Ruby environment. |
|
protected void |
setJrubyJarProvider(Object provider)Location of jruby-complete JAR. |
|
void |
withModuleOpens()Shortcut to open modules when needed for execution. |
|
void |
withSystemPath()Shortcut to ensure system path is added to JRuby environment. |
Allows for use script author to control the effect of the system Ruby environment.
Set directory where GEMs are installed.
gdp - Provider to a task which will install GEMs.Set directory where GEMs are installed.
gdp - Provider to a directoryAllows for use script author to control the effect of the system Ruby environment.
mode - How much of JRuby system environment should be inherited. Location of jruby-complete JAR.
The derived implementation needs to call this to set up the correct location.
provider - An object that will provide the location of jruby-complete.
Must resolve to a File instance.Shortcut to open modules when needed for execution.
Shortcut to ensure system path is added to JRuby environment.
Groovy Documentation