Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Cargando en…3
×

Eche un vistazo a continuación

1 de 25 Anuncio

Más Contenido Relacionado

Presentaciones para usted (18)

Anuncio

Similares a GroovyConsole (20)

Más de Kiyotaka Oku (20)

Anuncio

Más reciente (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']

×