← Back to team overview

sikuli-driver team mailing list archive

[Bug 1319686] [NEW] [request] possible to add Groovy support to SikuliX?

 

Public bug reported:

from the connected question comment #6:

-Groovy: since you can mix pure java and groovy and even use Groovy classes directly from java classes with java syntax, I think integration might be easy. All you need is the groovy-all jar from http://groovy.codehaus.org. Some incredible functions like @Grab (http://groovy.codehaus.org/api/groovy/lang/Grab.html - I think you'll love this...) are only avalable if your RootClassLoader is GroovyClassLoader though, so if you want to support Grab (or even use it for the IDE) you'll probably have to work a bit more on it.
About the engine http://groovy.codehaus.org/api/groovy/util/GroovyScriptEngine.html is fairly easy to use. Here some example, http://groovy.codehaus.org/Embedding+Groovy, but beware the GroovyShell... I really think you'd prefer to go to GroovyScriptEngine. I say so 'cause I started with GroovyShell and then painfully refactored to GroovyScriptEngine. This way you could even run third party scripts with classpath roots as your only concern.

** Affects: sikuli
     Importance: Low
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Low

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1319686

Title:
  [request] possible to add Groovy support to SikuliX?

Status in Sikuli:
  In Progress

Bug description:
  from the connected question comment #6:

  -Groovy: since you can mix pure java and groovy and even use Groovy classes directly from java classes with java syntax, I think integration might be easy. All you need is the groovy-all jar from http://groovy.codehaus.org. Some incredible functions like @Grab (http://groovy.codehaus.org/api/groovy/lang/Grab.html - I think you'll love this...) are only avalable if your RootClassLoader is GroovyClassLoader though, so if you want to support Grab (or even use it for the IDE) you'll probably have to work a bit more on it.
  About the engine http://groovy.codehaus.org/api/groovy/util/GroovyScriptEngine.html is fairly easy to use. Here some example, http://groovy.codehaus.org/Embedding+Groovy, but beware the GroovyShell... I really think you'd prefer to go to GroovyScriptEngine. I say so 'cause I started with GroovyShell and then painfully refactored to GroovyScriptEngine. This way you could even run third party scripts with classpath roots as your only concern.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1319686/+subscriptions


Follow ups

References