Successfully reported this slideshow.
Your SlideShare is downloading. ×

GroovyConsole

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 25 Ad
Advertisement

More Related Content

Advertisement

Similar to GroovyConsole (20)

More from Kiyotaka Oku (20)

Advertisement

Recently uploaded (20)

GroovyConsole

  1. 1. GroovyConsole 16 G*
  2. 2. id:kiy0taka @kiy0taka JGGUG Jenkins Terminal jQuery MongoDB
  3. 3. Groovy ※
  4. 4. GroovyConsole
  5. 5. GroovyConsole Groovy AST
  6. 6. GroovyConsole groovy.ui.Console Groovy 1 groovy-all.jar Grape ...
  7. 7. GroovyConsole groovyConsole java -jar groovy-all.jar groovy.ui.Console groovy -e "new groovy.ui.Console().run()"
  8. 8. run() void run() { run(frameConsoleDelegates) } void run(Map defaults) { … }
  9. 9. frameConsoleDelegates static def frameConsoleDelegates = [ rootContainerDelegate: { … } menuBarDelegate: {arg-> current.JMenuBar = build(arg) } ];
  10. 10. def myMenu = { menu(text:'JGGUG') { menuItem('Hello', actionPerformed: { JOptionPane.showMessageDialog(null, 'Hello!') }) } }
  11. 11. new Console().run( Console.frameConsoleDelegates << [menuBarDelegate: {arg-> current.JMenuBar = build(arg) current.JMenuBar.add(build(myMenu)) }] )
  12. 12. beforeExecution afterExecution new Console( beforeExecution: { ... }, afterExecution: { ... } )
  13. 13. GroovyConsole on Jenkins https://gist.github.com/843507 MoteConsole https://gist.github.com/1031115
  14. 14. Groovy GROOVY_SOURCE_EXTENSIONS = ['*.groovy', '*.gvy', '*.gy', '*.gsh']

×