You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is along the lines of JavaExec or RhinoShellExec. We would like to have the ability to execute a Ruby script as a task.
As a task:
task myRubyScript( type : JRubyExec ) {
// The name of the script - This is the only mandatory setting
script 'path/to/script.rb'// Parameters to be passed to the script
scriptArgs '-x', '-y'// workingDir in case if needs to be overrided
workingDir '/working/dir'// Config group for gems that need to be made available to the task// Defaults to jrubyExec
gems 'jrubyExec'// Ability to add additional JVM arguments
jvmArgs '-Dsomething=that'// Add additional environmental variables
environment 'FOO' : 'bar', 'TESTPORT', '5959'
}
As a project extension:
task myCustomTaskNeedsRubyLove << {
project.jrubyexec {
// parameters similar to JRubyExec
}
}
The text was updated successfully, but these errors were encountered:
This is along the lines of
JavaExec
orRhinoShellExec
. We would like to have the ability to execute a Ruby script as a task.As a task:
As a project extension:
The text was updated successfully, but these errors were encountered: