Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

GroovyConsole

1,876 views

Published on

Published in: Technology
  • Be the first to comment

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]

×