How can I run JRuby scripts using the RTC Java client API?
Is it possible to use JRuby (or other JVM-based scripting languages) to run scripts against RTC, using its Java client API? Are there any examples showing how?
|
2 answers
Yes. I've started a wiki topic for this: https://jazz.net/wiki/bin/view/Main/JRubyScripting
"JRuby is an implementation of the Ruby programming language (and libraries), running on top of the Java runtime. It also makes it easy to call existing Java code, in a way that's idiomatic to Ruby. As an interpreted, dynamically typed language, it's easy to try things out and to iterate quickly, with quite concise code."
A similar approach could be taken with other JVM-based scripting languages, e.g. Groovy, Jython.
I'm considering switching these scripts to Groovy, since it's more "native" / common in the Java world (even though I personally quite like [J]Ruby).
Comments I gave a lightning talk on this at Innovate 2013. The BuildEnginesAndDefinitions.rb script is a slightly tweaked version of the one I walked through then. |
very cool.. working to move a couple of my client apps over now. I missed Innovate this year.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.