GroovyConsole

1,702 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,702
On SlideShare
0
From Embeds
0
Number of Embeds
334
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

GroovyConsole

  1. 1. GroovyConsole 16 G*
  2. 2. id:kiy0taka @kiy0takaJGGUGJenkins Terminal jQuery MongoDB
  3. 3. Groovy※
  4. 4. GroovyConsole
  5. 5. GroovyConsoleGroovyAST
  6. 6. GroovyConsolegroovy.ui.Console Groovy 1groovy-all.jar Grape ...
  7. 7. GroovyConsolegroovyConsolejava -jar groovy-all.jar groovy.ui.Consolegroovy -e "new groovy.ui.Console().run()"
  8. 8. run() void run() { run(frameConsoleDelegates) } void run(Map defaults) { … }
  9. 9. frameConsoleDelegatesstatic 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. beforeExecutionafterExecution new Console( beforeExecution: { ... }, afterExecution: { ... } )
  13. 13. GroovyConsole on Jenkins https://gist.github.com/843507MoteConsole https://gist.github.com/1031115
  14. 14. GroovyGROOVY_SOURCE_EXTENSIONS = [*.groovy, *.gvy, *.gy, *.gsh]

×