Your SlideShare is downloading. ×
Groovyノススメ
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Groovyノススメ

2,751
views

Published on

Published in: Technology

0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,751
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
15
Comments
0
Likes
7
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Groovy 2009.12.12 DevLOVE 2009 Fusion takuma.watabiki@jggug.org
  • 2. JGGUG Grails/Groovy twitter id : bikisuke
  • 3. Groovy 10
  • 4. Groovy
  • 5. Groovy
  • 6. Groovy • JVM
  • 7. Groovy • JVM •
  • 8. Groovy • JVM • •
  • 9. Groovy • JVM • • • Java
  • 10. Groovy • JVM • • • Java • Ruby Python, Smalltalk
  • 11. Java
  • 12. Java C)
  • 13. Java Groovy C)
  • 14. Groovy Java Java
  • 15. Groovy Java Java
  • 16. ERROR Java Groovy
  • 17. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); } catch(Exception e) {} Java } } }
  • 18. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); .groovy } catch(Exception e) {} } } }
  • 19. import java.util.regex.*; BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); main } catch(Exception e) {} }
  • 20. import java.util.regex.*; BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } br.close(); bw.close(); try-catch
  • 21. File f = new File("/work/errorlist.log") new File("/work/server.log").eachLine { line -> if(line =~ ".*ERROR.*") { f.append(line + "¥n") } } Groovy
  • 22. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); } catch(Exception e) {} } } }
  • 23. File f = new File("/work/errorlist.log") new File("/work/server.log").eachLine { line -> if(line =~ ".*ERROR.*") { f.append(line + "¥n") } }
  • 24. • • Expando Meta Class • Grape • Mixin • AST • ...
  • 25. Groovy
  • 26. Groovy
  • 27. Groovy
  • 28. Groovy
  • 29. Hudson kkawa Groovy ※
  • 30. Hudson kkawa Groovy ※ ※2008 SDC SQUARE
  • 31. Groovy Q&A
  • 32. Q.
  • 33. A. Hudson CLI groovy groovysh
  • 34. Q. Scala
  • 35. A. Groovy
  • 36. Q.
  • 37. A. Groovy ! Groovy @torazuka
  • 38. Q. Groovy
  • 39. A. Groovy JOJO Groovy
  • 40. A. Groovy JOJO Groovy
  • 41. Q. Groovy
  • 42. A.
  • 43. Groovy
  • 44. Groovy JGGUG
  • 45. Groovy JGGUG
  • 46. Groovy JVM Java

×