commit | bf79f894a59412b455e206ceb76a2671fae5cd71 | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Sun Feb 12 22:30:01 2017 +0000 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Sun Feb 12 22:30:11 2017 +0000 |
tree | a45d38ebfa181ab0e725d985cfb1d9c662ab0570 | |
parent | 1a32786027b1ab81ea1080c629f6a4cbbc465126 [diff] |
Use throw in catch block Change-Id: I5d77ce45ef25e034b4f3c1b10fcd437665e1e3f1
This plugin provides Scala runtime environment for Gerrit plugins in Scala.
To build link this directory under Gerrit's tree plugins directory and run:
buck build plugins/scala-provider:scala-provider
The resulting artifact can be found under:
buck-out/gen/plugins/scala-provider/scala-provider.jar
A sample Scala hello world script is:
import com.google.gerrit.sshd._ import com.google.gerrit.extensions.annotations._ @Export("scala") class ScalaCommand extends SshCommand { override def run = stdout println "Hello from Scala!" }
Copy and past the above sample Scala fragment into the file $GERRIT_SITE/plugin/hello-1.0.scala.
The “hello” plugin version 1.0 will be automatically loaded into Gerrit and will provide a new SSH command “hello scala”.