ITeye博客

Groovy Tip: Running Groovy from Sublime Text Editor - http://fizalihsan.wordpres

BenjaminYu · 2014-07-04 16:27 · Groovy · 编程语言 · Groovy · sublime · Markdown

http://fizalihsan.wordpress.com/2013/11/14/groovy-tip-running-groovy-from-sublime-text-editor/

Groovy Tip: Running Groovy from Sublime Text Editor

fizalihsan / November 14, 2013

I just came across this cool little trick to compile and run Groovy scripts from Sublime Text Editor.

  • Open the editor and go to menu Tools->Build System. This will open a new file named ‘untitled.sublime-build‘.
  • Add the path to your Groovy installation directory as show below.
{
 "cmd": ["C:/apps/Groovy/groovy-2.1.9/bin/groovy.bat", "$file"]
}
  • Now ‘save’ the file as ‘groovy.sublime-build‘.
  • Open your groovy script and in the menu select ‘Tools->Build System->Groovy’
  • To compile and execute, ‘Tools->Build’ or F7 or Ctrl+B.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。