Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial commit

  • Loading branch information...
commit f14bdec2844bfc80fd0339813d3bd872a818ab76 1 parent a484d20
@yusuke authored
Showing with 18,503 additions and 0 deletions.
  1. +56 −0 1.4.2_03BEAidle.dmp
  2. +70 −0 1.4.2_03BEAstacked.dmp
  3. +3 −0  MANIFEST.MF
  4. +60 −0 README.txt
  5. +61 −0 README_ja.txt
  6. +1 −0  Untitled 1
  7. +166 −0 bak/build.xml~10~
  8. +185 −0 bak/build.xml~1~
  9. +185 −0 bak/build.xml~2~
  10. +185 −0 bak/build.xml~3~
  11. +188 −0 bak/build.xml~4~
  12. +188 −0 bak/build.xml~5~
  13. +188 −0 bak/build.xml~6~
  14. +188 −0 bak/build.xml~7~
  15. +188 −0 bak/build.xml~8~
  16. +161 −0 bak/build.xml~9~
  17. +99 −0 bak/net/homeip/yusuke/cap/AboutDialog.java~1~
  18. +99 −0 bak/net/homeip/yusuke/cap/AboutDialog.java~2~
  19. +102 −0 bak/net/homeip/yusuke/cap/AboutDialog.java~3~
  20. +102 −0 bak/net/homeip/yusuke/cap/AboutDialog.java~4~
  21. +51 −0 bak/net/homeip/yusuke/cap/Cap.java~1~
  22. +51 −0 bak/net/homeip/yusuke/cap/Cap.java~2~
  23. +51 −0 bak/net/homeip/yusuke/cap/Cap.java~3~
  24. +26 −0 bak/net/homeip/yusuke/cap/FileLocations.java~1~
  25. +29 −0 bak/net/homeip/yusuke/cap/FileLocations.java~2~
  26. +32 −0 bak/net/homeip/yusuke/cap/FileLocations.java~3~
  27. +37 −0 bak/net/homeip/yusuke/cap/FileLocations.java~4~
  28. +37 −0 bak/net/homeip/yusuke/cap/FileLocations.java~5~
  29. +38 −0 bak/net/homeip/yusuke/cap/FileLocations.java~6~
  30. +99 −0 bak/net/homeip/yusuke/cap/Frame1_AboutBox.java~1~
  31. +171 −0 bak/net/homeip/yusuke/cap/JarResolver.java~39~
  32. +172 −0 bak/net/homeip/yusuke/cap/JarResolver.java~40~
  33. +172 −0 bak/net/homeip/yusuke/cap/JarResolver.java~41~
  34. +173 −0 bak/net/homeip/yusuke/cap/JarResolver.java~42~
  35. +180 −0 bak/net/homeip/yusuke/cap/JarResolver.java~43~
  36. +187 −0 bak/net/homeip/yusuke/cap/JarResolver.java~44~
  37. +191 −0 bak/net/homeip/yusuke/cap/JarResolver.java~45~
  38. +191 −0 bak/net/homeip/yusuke/cap/JarResolver.java~46~
  39. +199 −0 bak/net/homeip/yusuke/cap/JarResolver.java~47~
  40. +195 −0 bak/net/homeip/yusuke/cap/JarResolver.java~48~
  41. +29 −0 bak/net/homeip/yusuke/cap/JarTree.java~10~
  42. +52 −0 bak/net/homeip/yusuke/cap/JarTree.java~1~
  43. +54 −0 bak/net/homeip/yusuke/cap/JarTree.java~2~
  44. +55 −0 bak/net/homeip/yusuke/cap/JarTree.java~3~
  45. +55 −0 bak/net/homeip/yusuke/cap/JarTree.java~4~
  46. +17 −0 bak/net/homeip/yusuke/cap/JarTree.java~5~
  47. +23 −0 bak/net/homeip/yusuke/cap/JarTree.java~6~
  48. +24 −0 bak/net/homeip/yusuke/cap/JarTree.java~7~
  49. +23 −0 bak/net/homeip/yusuke/cap/JarTree.java~8~
  50. +25 −0 bak/net/homeip/yusuke/cap/JarTree.java~9~
  51. +261 −0 bak/net/homeip/yusuke/cap/MainFrame.java~67~
  52. +262 −0 bak/net/homeip/yusuke/cap/MainFrame.java~68~
  53. +264 −0 bak/net/homeip/yusuke/cap/MainFrame.java~69~
  54. +265 −0 bak/net/homeip/yusuke/cap/MainFrame.java~70~
  55. +266 −0 bak/net/homeip/yusuke/cap/MainFrame.java~71~
  56. +266 −0 bak/net/homeip/yusuke/cap/MainFrame.java~72~
  57. +266 −0 bak/net/homeip/yusuke/cap/MainFrame.java~73~
  58. +266 −0 bak/net/homeip/yusuke/cap/MainFrame.java~74~
  59. +275 −0 bak/net/homeip/yusuke/cap/MainFrame.java~75~
  60. +276 −0 bak/net/homeip/yusuke/cap/MainFrame.java~76~
  61. +21 −0 bak/net/homeip/yusuke/cap/Waraji.java~1~
  62. +11 −0 bak/net/homeip/yusuke/cap/default.properties~1~
  63. +2 −0  bak/net/homeip/yusuke/cap/default.properties~2~
  64. +21 −0 bak/net/homeip/yusuke/cap/keystroke_mac.properties~1~
  65. +20 −0 bak/net/homeip/yusuke/cap/keystroke_win.properties~1~
  66. +63 −0 bak/net/homeip/yusuke/cap/messages.properties~1~
  67. +16 −0 bak/net/homeip/yusuke/cap/messages.properties~2~
  68. +20 −0 bak/net/homeip/yusuke/cap/messages.properties~3~
  69. +20 −0 bak/net/homeip/yusuke/cap/messages.properties~4~
  70. +68 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~1~
  71. +16 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~2~
  72. +16 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~3~
  73. +20 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~4~
  74. +20 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~5~
  75. +21 −0 bak/net/homeip/yusuke/cap/messages_ja.properties~6~
  76. +29 −0 bak/net/homeip/yusuke/cap/test/TestJarResolver.java~1~
  77. +29 −0 bak/net/homeip/yusuke/cap/test/TestJarResolver.java~2~
  78. +27 −0 bak/net/homeip/yusuke/cap/test/TestJarResolver.java~3~
  79. +244 −0 bak/net/homeip/yusuke/common/Configuration.java~1~
  80. +245 −0 bak/net/homeip/yusuke/common/Configuration.java~2~
  81. +254 −0 bak/net/homeip/yusuke/common/Configuration.java~3~
  82. +265 −0 bak/net/homeip/yusuke/common/Configuration.java~4~
  83. +268 −0 bak/net/homeip/yusuke/common/Configuration.java~5~
  84. +269 −0 bak/net/homeip/yusuke/common/Configuration.java~6~
  85. +16 −0 bak/net/homeip/yusuke/common/ConfigurationListener.java~1~
  86. +17 −0 bak/net/homeip/yusuke/common/ConfigurationListener.java~2~
  87. +145 −0 bak/net/homeip/yusuke/common/CustomizableKeyStroke.java~1~
  88. +19 −0 bak/net/homeip/yusuke/common/GUILauncher.java~1~
  89. +27 −0 bak/net/homeip/yusuke/common/GUILauncher.java~2~
  90. +25 −0 bak/net/homeip/yusuke/common/GUILauncher.java~3~
  91. +278 −0 bak/net/homeip/yusuke/common/I18nizedResources.java~1~
  92. +77 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~10~
  93. +78 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~11~
  94. +76 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~12~
  95. +75 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~13~
  96. +74 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~14~
  97. +72 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~15~
  98. +82 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~16~
  99. +73 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~7~
  100. +75 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~8~
  101. +77 −0 bak/net/homeip/yusuke/samurai/BEAThreadDump.java~9~
  102. +57 −0 bak/net/homeip/yusuke/samurai/FullThreadDump.java~1~
  103. +57 −0 bak/net/homeip/yusuke/samurai/FullThreadDump.java~2~
  104. +58 −0 bak/net/homeip/yusuke/samurai/FullThreadDump.java~3~
  105. +179 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~19~
  106. +181 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~20~
  107. +181 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~21~
  108. +181 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~22~
  109. +179 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~23~
  110. +179 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~24~
  111. +179 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~25~
  112. +179 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~26~
  113. +187 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~27~
  114. +187 −0 bak/net/homeip/yusuke/samurai/I18nizedResources.java~28~
  115. +9 −0 bak/net/homeip/yusuke/samurai/LogMonitor.java~1~
  116. +204 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~24~
  117. +204 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~25~
  118. +206 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~26~
  119. +206 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~27~
  120. +206 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~28~
  121. +199 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~29~
  122. +200 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~30~
  123. +200 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~31~
  124. +198 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~32~
  125. +198 −0 bak/net/homeip/yusuke/samurai/LogWatcher.java~33~
  126. +19 −0 bak/net/homeip/yusuke/samurai/ObjectLock.java~1~
  127. +75 −0 bak/net/homeip/yusuke/samurai/StackLine.java~10~
  128. +83 −0 bak/net/homeip/yusuke/samurai/StackLine.java~11~
  129. +80 −0 bak/net/homeip/yusuke/samurai/StackLine.java~2~
  130. +84 −0 bak/net/homeip/yusuke/samurai/StackLine.java~3~
  131. +88 −0 bak/net/homeip/yusuke/samurai/StackLine.java~4~
  132. +92 −0 bak/net/homeip/yusuke/samurai/StackLine.java~5~
  133. +92 −0 bak/net/homeip/yusuke/samurai/StackLine.java~6~
  134. +96 −0 bak/net/homeip/yusuke/samurai/StackLine.java~7~
  135. +78 −0 bak/net/homeip/yusuke/samurai/StackLine.java~8~
  136. +78 −0 bak/net/homeip/yusuke/samurai/StackLine.java~9~
  137. +5 −0 bak/net/homeip/yusuke/samurai/SunStackLine.java~1~
  138. +8 −0 bak/net/homeip/yusuke/samurai/SunStackLine.java~2~
  139. +212 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~10~
  140. +213 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~11~
  141. +221 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~12~
  142. +220 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~13~
  143. +218 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~4~
  144. +199 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~5~
  145. +199 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~6~
  146. +198 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~7~
  147. +198 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~8~
  148. +207 −0 bak/net/homeip/yusuke/samurai/SunThreadDump.java~9~
  149. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~1~
  150. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~2~
  151. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~3~
  152. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~4~
  153. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~5~
  154. +79 −0 bak/net/homeip/yusuke/samurai/TestThreadDump.java~6~
View
56 1.4.2_03BEAidle.dmp
@@ -0,0 +1,56 @@
+
+===== FULL THREAD DUMP ===============
+Fri Mar 05 15:53:50 2004
+
+"Main Thread" id: 0x00000080 prio: 5 WAITING, NONDAEMON, GCABLE
+ thread: 0x00AD3D40 lastj: 0x0006FB70 pt_thr: 0x000005E8
+ at jrockit/vm/Threads.waitForSignalWithTimeout(Native Method)@40C44720
+ at jrockit/vm/Locks.wait(Unknown Source)@40C448DA
+ at java/lang/Thread.sleep(Unknown Source)@414D30E2
+ at net/homeip/yusuke/samurai/test/IdleSample.main(IdleSample.java:5)@414F000C
+ --- End of stack trace
+
+"(Signal Handler)" id: 0x00000100 prio: 5 ACTIVE, DAEMON, GCABLE
+ thread: 0x40C7C750 lastj: 0xFFFFFFFC pt_thr: 0x00000430
+ No Java stack trace available
+
+"(Code Generation Thread 1)" id: 0x00000180 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40BE2C80 lastj: 0xFFFFFFFC pt_thr: 0x000007C4
+ No Java stack trace available
+
+"(Code Optimization Thread 1)" id: 0x00000200 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40BE2D78 lastj: 0xFFFFFFFC pt_thr: 0x000006FC
+ No Java stack trace available
+
+"(GC Main Thread)" id: 0x00000280 prio: 5 ACTIVE, DAEMON, GCABLE
+ thread: 0x40BBCDC0 lastj: 0xFFFFFFFC pt_thr: 0x0000070C
+ No Java stack trace available
+
+"(GC Worker Thread 1)" id: 0x00000300 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40C84990 lastj: 0xFFFFFFFC pt_thr: 0x00000730
+ No Java stack trace available
+
+"Finalizer" id: 0x00000380 prio: 8 WAITING, DAEMON, GCABLE
+ thread: 0x40C906A8 lastj: 0x4125FD8C pt_thr: 0x000006A0
+ at jrockit/vm/Threads.waitForSignal(Native Method)@40C421C0
+ at jrockit/vm/Locks.wait(Unknown Source)@412E00CC
+ at jrockit/vm/Locks.wait(Unknown Source)@40C44811
+ at java/lang/ref/ReferenceQueue.remove(ReferenceQueue.java:111)@40C4FED7
+ at java/lang/ref/ReferenceQueue.remove(ReferenceQueue.java:127)@40C4FE5C
+ at java/lang/ref/Finalizer$FinalizerThread.run(Unknown Source)@40C4FE0E
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C4FD43
+ --- End of stack trace
+
+"Reference Handler" id: 0x00000400 prio: 10 WAITING, DAEMON, GCABLE
+ thread: 0x40CB2550 lastj: 0x4136FDD8 pt_thr: 0x00000788
+ at java/lang/ref/Reference.getPending(Native Method)@412E8840
+ at java/lang/ref/Reference.access$000(Unknown Source)@412E8895
+ at java/lang/ref/Reference$ReferenceHandler.run(Unknown Source)@412E87B0
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C4FD43
+ --- End of stack trace
+
+"(Hotspot Detector)" id: 0x00000480 prio: 10 ACTIVE, DAEMON, GCABLE
+ thread: 0x40D386F0 lastj: 0xFFFFFFFC pt_thr: 0x000006C0
+ No Java stack trace available
+
+=====================
View
70 1.4.2_03BEAstacked.dmp
@@ -0,0 +1,70 @@
+
+===== FULL THREAD DUMP ===============
+Fri Mar 05 15:52:32 2004
+
+"Main Thread" id: 0x00000080 prio: 5 ACTIVE, DAEMON, GCABLE
+ thread: 0x40D41C78 lastj: 0xFFFFFFFC pt_thr: 0x00000278
+ No Java stack trace available
+
+"(Signal Handler)" id: 0x00000100 prio: 5 ACTIVE, DAEMON, GCABLE
+ thread: 0x40C7C750 lastj: 0xFFFFFFFC pt_thr: 0x00000790
+ No Java stack trace available
+
+"(Code Generation Thread 1)" id: 0x00000180 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40BE2C80 lastj: 0xFFFFFFFC pt_thr: 0x000007C4
+ No Java stack trace available
+
+"(Code Optimization Thread 1)" id: 0x00000200 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40BE2D78 lastj: 0xFFFFFFFC pt_thr: 0x000007CC
+ No Java stack trace available
+
+"(GC Main Thread)" id: 0x00000280 prio: 5 ACTIVE, DAEMON, GCABLE
+ thread: 0x40BBCDC0 lastj: 0xFFFFFFFC pt_thr: 0x000005DC
+ No Java stack trace available
+
+"(GC Worker Thread 1)" id: 0x00000300 prio: 5 ACTIVE, NATIVE_LOCK_WAITING, DAEMON, GCABLE
+ thread: 0x40C84990 lastj: 0xFFFFFFFC pt_thr: 0x00000698
+ No Java stack trace available
+
+"Finalizer" id: 0x00000380 prio: 8 WAITING, DAEMON, GCABLE
+ thread: 0x40C906A8 lastj: 0x4125FD8C pt_thr: 0x0000065C
+ at jrockit/vm/Threads.waitForSignal(Native Method)@40C421C0
+ at jrockit/vm/Locks.wait(Unknown Source)@40C493FC
+ at jrockit/vm/Locks.wait(Unknown Source)@40C44811
+ at java/lang/ref/ReferenceQueue.remove(ReferenceQueue.java:111)@40C49257
+ at java/lang/ref/ReferenceQueue.remove(ReferenceQueue.java:127)@40C491DC
+ at java/lang/ref/Finalizer$FinalizerThread.run(Unknown Source)@40C4918E
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C490C3
+ --- End of stack trace
+
+"Reference Handler" id: 0x00000400 prio: 10 WAITING, DAEMON, GCABLE
+ thread: 0x40CB2550 lastj: 0x4135FDD8 pt_thr: 0x000005D4
+ at java/lang/ref/Reference.getPending(Native Method)@412D8820
+ at java/lang/ref/Reference.access$000(Unknown Source)@412D8875
+ at java/lang/ref/Reference$ReferenceHandler.run(Unknown Source)@412D8790
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C490C3
+ --- End of stack trace
+
+"(Hotspot Detector)" id: 0x00000480 prio: 10 ACTIVE, DAEMON, GCABLE
+ thread: 0x40C87030 lastj: 0xFFFFFFFC pt_thr: 0x000005B4
+ No Java stack trace available
+
+"Thread-1" id: 0x00000500 prio: 5 ACTIVE, NONDAEMON, GCABLE
+ thread: 0x40D1D0B8 lastj: 0x4153FDCC pt_thr: 0x000007A0
+ at jrockit/vm/Threads.progressiveNap(Native Method)@40C40D70
+ at jrockit/vm/Locks.stage2Lock(Native Method)@40C40FF7
+ at jrockit/vm/Locks.monitorEnter(Native Method)@40C41096
+ at net/homeip/yusuke/samurai/test/AThread.run(StackSample.java:25)@414F0109
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C490C3
+ --- End of stack trace
+
+"Thread-2" id: 0x00000580 prio: 5 ACTIVE, NONDAEMON, GCABLE
+ thread: 0x40D550B0 lastj: 0x4157FDCC pt_thr: 0x0000060C
+ at jrockit/vm/Threads.progressiveNap(Native Method)@40C40D70
+ at jrockit/vm/Locks.stage2Lock(Native Method)@40C40FF7
+ at jrockit/vm/Locks.monitorEnter(Native Method)@40C41096
+ at net/homeip/yusuke/samurai/test/AThread.run(StackSample.java:25)@414F0109
+ at java/lang/Thread.startThreadFromVM(Unknown Source)@40C490C3
+ --- End of stack trace
+
+=====================
View
3  MANIFEST.MF
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Main-Class: net.homeip.yusuke.waraji.Waraji
+
View
60 README.txt
@@ -0,0 +1,60 @@
+-------------------------Samurai 1.0-----------------------
+What is "Samurai":
+Samurai is a GUI tool to analyze thread dumps.
+
+System reqirements:
+OS: Windows or any flavor of Unix that supports Java
+JVM: 1.4 or later
+
+Setup:
+1)Unzip samurai.zip to a proper directory on your filesystem.
+
+2)Launch samurai.jar using Edit komuso.properties as follows:
+Set JAVA_HOME to your Java Home directory such as C:\bea81sp2\jrockit81sp2_141_05
+Set WL_HOME to your WebLogic Home directory such as C:\bea81sp2\weblogic81\server
+
+3)Edit komuso.properties as follows:
+Set java.naming.provider.url to your weblogic url.
+Set java.naming.security.principal to your weblogic admin username
+Set java.naming.security.credentials to you weblogic admin password
+
+a typical setting would be as follows,
+java.naming.provider.url=t3://127.0.0.1:7001
+java.naming.security.principal=system
+java.naming.security.credentials=weblogic
+
+Additionally, you can specify the sampling interval in seconds, the number of times and mbean's properties you want to monitor.
+See komuso.properties for more detailed information.
+
+Usage:
+Just type komuso.sh/bat to run and Samurai will log WebLogic status in CSV format.
+Optionally you can specify the filename to output.
+
+- most Unix (including Solaris, Linux, HP-UX, MacOSX or AIX)
+$ komuso.sh [filename]
+- Windows
+> komuso.bat [filename]
+
+Error handling:
+-java.lang.IllegalArgumentException: mbean not found [heap free:name:type:property]
+This means that the MBean couldn't be found. Check if the name and type are correct.
+
+-java.lang.IllegalArgumentException: property not found [heap free:name:type:property]
+This means that the MBean could be found, but the specified property was not found. Check if the property is exist.
+
+-javax.naming.CommunicationException. Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
+ java.net.ConnectException: Connection refused: connect; No available router to destination
+This means that the connection between the Samurai and the WLS has been lost.
+Check the network and if the WLS is alive.
+
+Compile:
+You can customize komuso for any reason.
+Use compile.sh/bat to compile.
+
+Please feel free to comment:
+Yusuke Yamamoto
+yusukey@bea.com
+
+Special thanks to:
+Akira Ueda
+Noritaka Kuroiwa
View
61 README_ja.txt
@@ -0,0 +1,61 @@
+-------------------------�� 1.0-----------------------
+"��" �Ƃ�:
+�� �̓X���b�h�_���v���͂���GUI�c�[���ł��B
+
+�� �͂���� 150 �s�̃R�[�h�łł��Ă��܂��̂ŁA�ƂĂ�M�����������A������₷���A�܂��J�X�^�}�C�Y���e�Ղł��B
+
+�V�X�e���v��:
+WebLogic Server 6.1, 7.0 or 8.1
+OS: Java ��T�|�[�g���� Windows �� Unix
+
+�Z�b�g�A�b�v:
+1)komuso.zip ��K�؂ȃf�B���N�g���ɉ𓀂���
+
+2)komuso.properties ��ȉ��̂悤�ɕҏW����
+JAVA_HOME �� C:\bea81sp2\jrockit81sp2_141_05 �Ȃ� Java�z�[���f�B���N�g����
+WL_HOME �� C:\bea81sp2\weblogic81\server �Ȃ� WebLogic �z�[���f�B���N�g����
+
+3)komuso_ja.properties ��ȉ��̂悤�ɕҏW����
+java.naming.provider.url �� WebLogic �� URL ��
+java.naming.security.principal �� WebLogic �Ǘ��҂̃��[�U����
+java.naming.security.credentials �� WebLogic �Ǘ��҂̃p�X���[�h��
+
+�T�^�I�Ȑݒ�ł͈ȉ��̂悤�ɂȂ�܂�
+java.naming.provider.url=t3://127.0.0.1:7001
+java.naming.security.principal=system
+java.naming.security.credentials=weblogic
+
+����āA�T���v�����O�Ԋu�A�T���v���񐔁A�C�ӂ� MBean ������w�肷�邱�Ƃ��ł��܂��B
+�ڂ����� komuso_ja.properties ��Ă��������B
+
+komuso.properties �͎�s���ɏ㏑������܂��B����̓��x���Ƀ}���`�o�C�g��g����悤�ɂ��邽�߂ŁAkomuso_ja.properties �ɑ΂��� native2ascii ����Ă��邩��ł��B
+���x���Ƀ}���`�o�C�g������g���K�v���Ȃ���΁Akomuso.properties, komuso.sh/cmd ����p���������Ă��\�ł��B
+
+�g����:
+�R�}���h���C����� komuso_ja.sh/bat ���s����ƁACSV�`���� WebLogic �̏�Ԃ�L�^���܂��B
+�o�͐�̃t�@�C������w�肷�邱�Ƃ�ł��܂��B
+- Unix �‹�(Solaris, Linux, HP-UX, MacOSX, AIX)
+$ komuso_ja.sh [filename]
+- Windows
+> komuso_ja.bat [filename]
+
+�G���[�Ή�:
+-java.lang.IllegalArgumentException: mbean not found [heap free:name:type:property]
+����� MBean �����‚���Ȃ�������Ƃ���܂��Bname, type �����������m�F���Ă��������B
+
+-java.lang.IllegalArgumentException: property not found [heap free:name:type:property]
+����� MBean �͌��‚�������A�w�肵���v���p�e�B�����‚���Ȃ�������Ƃ���܂��B
+�v���p�e�B�����݂��邩�m�F���Ă��������B
+
+-javax.naming.CommunicationException. Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
+ java.net.ConnectException: Connection refused: connect; No available router to destination
+����͎��� WLS �Ԃ̐ڑ�������ꂽ���Ƃ���܂��B
+�l�b�g���[�N�ƁAWLS �������Ă��Ȃ����m�F���Ă��������B
+
+�R���p�C��:
+�K�v�ɉ����Ď��R�ɃJ�X�^�}�C�Y���邱�Ƃ��ł��܂��B
+compile.sh/bat �ŃR���p�C���ł��܂��B
+
+�R�����g���������܂����炨�C�y�ɂǂ����B
+�R�{�T��
+yusukey@bea.com
View
1  Untitled 1
@@ -0,0 +1 @@
+�ESSH �̐ݒ� �Q�l�T�C�g: <a href="http://homepage3.nifty.com/toralu/MEMO/ssh.html">http://homepage3.nifty.com/toralu/MEMO/ssh.html</a> ���̍쐬 $ ssh-keygen -t rsa(�N���C�A���g��) ->~/.ssh/id_rsa.pub �Ɍ�J�����쐬����� id_rsa.pub ��T�[�o�ɃR�s�[���ăT�[�o�ɓo�^ $ cat id_rsa.pub >> ~/.ssh/authorized_keys(�T�[�o����) ssh �ɂ��ڑ� $ ssh ���[�U��@IP�z�X�g�� �EApache 2.0.52 �̃R���p�C��/�C���X�g�[�� $ ./configure --enable-deflate --enable-proxy --enable-proxy-http --enable-so --with-module-dav --with-module-dav-fs $ make # make install �EApache �̎����N���ݒ� <a href="http://www.macdevcenter.com/pub/a/mac/2003/10/21/startup.html">http://www.macdevcenter.com/pub/a/mac/2003/10/21/startup.html</a> # mkdir /Library/StartupItems/Apache2 # cd /Library/StartupItems/Apache2 # vi Apache2 ------- #!/bin/sh ## # Apache HTTP Server ## . /etc/rc.common StartService () { ConsoleMessage "Starting Apache web server" apachectl start } StopService () { ConsoleMessage "Stopping Apache web server" apachectl stop } RestartService () { ConsoleMessage "Restarting Apache web server" apachectl restart } RunService "$1" ---- # vi StartupParameters.plist ------- { Description = "Apache web server"; Provides = ("Web Server"); Requires = ("DirectoryServices"); Uses = ("Disks", "NFS"); OrderPreference = "None"; } --------- �EPostgreSQL �̃C���X�g�[�� ���c���B����Ƃ�����OSX�p�̃C���X�g�[����쐬���Ă�������Ă���̂ŗ��p�B�y�`���� <a href="http://www.heavyrain.jp/mac/postgrex/">http://www.heavyrain.jp/mac/postgrex/</a> �܂� Magic Postgre ��ăc�[���Ńf�[�^�x�[�X��쐬�B �f�[�^�x�[�X���� mt�A�����R�[�h�� Unicode �ŁB �Ȃ�����s������‚��Ă��Ȃ�����B $ chmod +x MagicPostgre0.42/MagicPostgre.app/Contents/MagicPostgre �EPHP�̃R���p�C��/�C���X�g�[�� PostgreSQL ��L��ɁB $ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql=/usr/local/pgsql/ --enable-mbstring $ make # make install �EImagemagick �̃C���X�g�[�� Movabletype�ŃA�b�v���[�h�����摜�̃T���l�C���쐬�ɕK�v http://www.entropy.ch/software/macosx/#imagemagick �EDBI(Perl��DB�C���^�[�t�F�[�X�H)�̃C���X�g�[�� <a href="http://www.ring.gr.jp/archives/lang/perl/CPAN/modules/by-category/07_Database_Interfaces/DBI/DBI-1.46.tar.gz">DBI-1.46.tar.gz</a>��_�E�����[�h $ perl Makefile.PL $ make # make install <a href="http://www.ring.gr.jp/archives/lang/perl/CPAN/modules/by-category/07_Database_Interfaces/DBD/DBD-Pg-1.32.tar.gz">DBD-Pg-1.32.tar.gz</a>��_�E�����[�h $ perl Makefile.PL $ make $ make test # make install �EMovabletype�̃C���X�g�[�� <a href="http://www.movabletype.jp/product_overview.shtml">3.1��{���</a>��_�E�����[�h mt.cfg��ҏW -CGI���J����p�X��o�^ 18: CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/ �� CGIPath http://yusuke.homeip.net/diary/mt/ -�ÓI�R���e���c��z�u����p�X��o�^ 63: StaticWebPath /path/to/static-files/ �� StaticWebPath /diary/ -�f�[�^�x�[�X�̐ݒ� 38: # ObjectDriver DBI::mysql 39: # Database <database-name> 40: # DBUser <database-username> 41: # DBHost localhost �� ObjectDriver DBI::postgres Database �f�[�^�x�[�X�� DBUser DB���[�U�� DBHost localhost mt-db-pass.cgi �Ƀf�[�^�x�[�X�̃p�X���[�h��L�q -����̐ݒ� $ chmod 755 /path/to/mtroot/mt*.cgi /usr/local/apache2/cgi-bin/ �֑S�Ẵt�@�C����ړ� /usr/local/apache2/htdocs/ �� diary �Ƃ������O�̃t�H���_��@�� cgi-bin �t�H���_��� docs,images,index.html,styles.css,mt.js �� diary �t�H���_�ֈړ� $ cd htdocs/diary/ $ mv ../../cgi-bin/docs ./ $ mv ../../cgi-bin/images ./ $ mv ../../cgi-bin/index.html ./ $ mv ../../cgi-bin/styles.css ./ $ mv ../../cgi-bin/mt.js ./ -httpd.conf ��ҏW �lj� ScriptAlias /diary/mt/ "/usr/local/apache2/cgi-bin/" -Apache ��N�� # SystemStarter start "Web Server" Welcome to Macintosh. Starting Apache web server Startup complete. Hangup perlmagick �̃C���X�g�[�� <a href="http://www.imagemagick.net/download/perl/">http://www.imagemagick.net/download/perl/</a> http://localhost/diary/mt/mt-load.cgi �ɃA�N�Z�X���ď��� mt-load.cgi ����Ȃ��Ƃ���ֈړ� http://localhost/diary/mt/mt.cgi �ɃA�N�Z�X����WebLog�̏���ݒ� �E�F�u���O�̖��O:���Y�� ���[�J���E�T�C�g�E�p�X:/usr/local/apache2/htdocs/diary �T�C�g��URL:http://yusuke.homeip.net/diary/ ���[�J���E�A�[�J�C�u�E�p�X:/usr/local/apache2/htdocs/diary/archives �A�[�J�C�u��URL:http://yusuke.homeip.net/diary/archives/ ���ԑ�:UTC+9 (��{����) �ߋ��̃��O�̃C���|�[�g cgi-bin �ȉ��� import �f�B���N�g����쐬 �ȑO�� movabletype ���G�N�X�|�[�g�����t�@�C��(mt.html) ��z�u���ăC���|�[�g���s �������ȕ����񂪊܂܂�Ă���̂�SQL�̃G���[(invalid byte sequence for encoding "UNICODE": 0xd601)���ł��B�G�f�B�^�ŊJ���� UTF-8 �ŕۑ������琳��ɃC���|�[�g�ł����B
View
166 bak/build.xml~10~
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <pathelement path="${build}/classes"/>
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+ <mkdir dir="${classes}"/>
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+ <mkdir dir="${build}/classes"/>
+ <mkdir dir="${doc}"/>
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${classes}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="war" if="webRoot">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ <signjar jar="${jarName}"
+ storepass="hogehoge"
+ keystore="mykeystore"/>
+
+
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="prepare,compile,jar,war,finish,mail"/>
+ <target name="extreme" depends="prepare,compile,test,javadoc,jar,war,finish,mail"/>
+</project>
View
185 bak/build.xml~1~
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
185 bak/build.xml~2~
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
185 bak/build.xml~3~
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
188 bak/build.xml~4~
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${src}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
188 bak/build.xml~5~
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${classes}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
188 bak/build.xml~6~
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${src}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii reverse="true" encoding="Shift_JIS" src="${classes}" dest="${src}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
188 bak/build.xml~7~
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${classes}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii reverse="true" encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
188 bak/build.xml~8~
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+
+ <pathelement path="${build}/classes"/>
+
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+
+ <mkdir dir="${classes}"/>
+
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+
+ <mkdir dir="${build}/classes"/>
+
+ <mkdir dir="${doc}"/>
+
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+
+ <antcall target="mkUnwarDir"/>
+
+ </target>
+ <target name="mkUnwarDir" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <!--delete includeEmptyDirs="true">
+ <fileset dir="${unwarDir}/" includes="**/*"/>
+ </delete-->
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${classes}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc" unless="failTest" depends="test">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="archive" if="failTest">
+ <antcall target="jar"/>
+ <antcall target="war"/>
+ </target>
+ <target name="war" if="webRoot" depends="test">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="unwar" if="unwarDir">
+ <mkdir dir="${unwarDir}"/>
+ <unwar src="${build}/warTemp.war" dest="${unwarDir}"/>
+ <delete dir="${unwarDir}/META-INF"/>
+ <!--delete dir="${build}"/-->
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName" depends="test">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="jar,war,finish,mail"/>
+</project>
View
161 bak/build.xml~9~
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="ProjectName" default="all" basedir=".">
+ <property file="build.properties"/>
+ <path id="project.class.path">
+ <fileset dir="${lib}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <pathelement path="${build}/classes"/>
+ <pathelement path="${java.class.path}"/>
+ </path>
+
+ <target name="prepare">
+ <mkdir dir="${classes}"/>
+ <mkdir dir="${build}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${build}/" includes="**/*"/>
+ </delete>
+ <mkdir dir="${build}/classes"/>
+ <mkdir dir="${doc}"/>
+ <mkdir dir="${reports}"/>
+ <delete includeEmptyDirs="true">
+ <fileset dir="${reports}/" includes="**/*"/>
+ </delete>
+ </target>
+
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src}" destdir="${build}/classes" deprecation="true">
+ <include name="**/*.java"/>
+ <classpath refid="project.class.path"/>
+ </javac>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${build}/classes"
+ includes="**/*.properties"/>
+ <copy todir="${build}/classes">
+ <fileset dir="${src}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="native2ascii">
+ <delete>
+ <fileset dir="${classes}" includes="**/*.properties"/>
+ </delete>
+ <native2ascii encoding="Shift_JIS" src="${src}" dest="${classes}"
+ includes="**/*.properties"/>
+ </target>
+
+ <target name="test" depends="compile">
+ <antcall target="testOne"/>
+ <antcall target="testSuite"/>
+ </target>
+
+ <target if="testclass" name="testOne">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <formatter type="xml"/>
+ <classpath refid="project.class.path"/>
+ <test name="${testclass}" todir="${reports}"/>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target unless="testclass" name="testSuite">
+ <junit fork="no" printsummary="yes" haltonfailure="no"
+ failureProperty="failTest" errorProperty="failTest">
+ <classpath refid="project.class.path"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="${reports}">
+ <fileset dir="${src}">
+ <include name="**/*TestSuite.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <junitreport todir="${reports}">
+ <fileset dir="${reports}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${reports}"/>
+ </junitreport>
+ </target>
+
+ <target name="javadoc">
+ <javadoc packagenames="*.*"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="${projectName}"
+ author="true"
+ version="true">
+ </javadoc>
+ </target>
+
+ <target name="war" if="webRoot">
+ <war warfile="${build}/warTemp.war" basedir="${webRoot}" webxml="${webRoot}/WEB-INF/web.xml">
+ <classes dir="${build}/classes"/>
+ <lib dir="${lib}/thirdParty">
+ <exclude name="${excludeLib}"/>
+ </lib>
+ </war>
+ <antcall target="unwar"/>
+ <antcall target="movewar"/>
+ </target>
+
+ <target name="movewar" if="warName">
+ <move file="${build}/warTemp.war" tofile="${warName}"/>
+ </target>
+ <target name="deploy" depends="prepare">
+ <java classname="weblogic.deploy" fork="yes">
+ <classpath refid="project.class.path"/>
+ <arg value="-port"/>
+ <arg value="80"/>
+ <arg value="-host"/>
+ <arg value="localhost"/>
+ <arg value="update"/>
+ <arg value="weblogic"/>
+ <arg value="-component"/>
+ <arg value="dbsample.war:myserver"/>
+ <arg value="dbSample"/>
+ <arg value="${warName}"/>
+ </java>
+ </target>
+
+ <target name="jar" if="jarName">
+ <jar jarfile="${jarName}"
+ manifest="MANIFEST.MF"
+ basedir="${build}/classes"/>
+ </target>
+
+ <target name="finish" depends="test" unless="failTest">
+ <copy todir="${classes}">
+ <fileset dir="${build}/classes"/>
+ </copy>
+ </target>
+ <target name="mail" if="tolist" depends="test">
+ <antcall target="mailSuccess"/>
+ <antcall target="mailFail"/>
+ </target>
+
+ <target name="mailSuccess" unless="failTest">
+ <mail from="${projectName}_ant_OK"
+ tolist="${tolist}"
+ message="Build finished. Successfully."
+ mailhost="${mailhost}"
+ subject="build finished.Successfully."/>
+ </target>
+ <target name="mailFail" if="failTest">
+ <mail from="${projectName}_ant_NG"
+ tolist="${tolist}"
+ message="Build finished unsuccessfully."
+ mailhost="${mailhost}"
+ subject="Build finished unsuccessfully."/>
+ </target>
+ <target name="all" depends="prepare,compile,jar,war,finish,mail"/>
+ <target name="extreme" depends="prepare,compile,test,javadoc,jar,war,finish,mail"/>
+</project>
View
99 bak/net/homeip/yusuke/cap/AboutDialog.java~1~
@@ -0,0 +1,99 @@
+package net.homeip.yusuke.cap;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.border.*;
+
+/**
+ * <p>Title: Samurai</p>
+ * <p>Description: a thread dump analyzing tool</p>
+ * <p>Copyright: Copyright (c) 2003,2004</p>
+ * <p> </p>
+ * @author Yusuke Yamamoto
+ * @version 1.0
+ */
+
+public class Frame1_AboutBox extends JDialog implements ActionListener {
+
+ JPanel panel1 = new JPanel();
+ JPanel panel2 = new JPanel();
+ JPanel insetsPanel1 = new JPanel();
+ JPanel insetsPanel2 = new JPanel();
+ JPanel insetsPanel3 = new JPanel();
+ JButton button1 = new JButton();
+ JLabel imageLabel = new JLabel();
+ JLabel label1 = new JLabel();
+ JLabel label2 = new JLabel();
+ JLabel label3 = new JLabel();
+ JLabel label4 = new JLabel();
+ ImageIcon image1 = new ImageIcon();
+ BorderLayout borderLayout1 = new BorderLayout();
+ BorderLayout borderLayout2 = new BorderLayout();
+ FlowLayout flowLayout1 = new FlowLayout();
+ GridLayout gridLayout1 = new GridLayout();
+ String product = "Samurai";
+ String version = "1.0";
+ String copyright = "Copyright (c) 2003,2004";
+ String comments = "a thread dump analyzing tool";
+ public Frame1_AboutBox(Frame parent) {
+ super(parent);
+ enableEvents(AWTEvent.WINDOW_EVENT_MASK);
+ try {
+ jbInit();
+ }
+ catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+ //Component initialization
+ private void jbInit() throws Exception {
+ image1 = new ImageIcon(net.homeip.yusuke.cap.MainFrame.class.getResource("about.png"));
+ imageLabel.setIcon(image1);
+ this.setTitle("About");
+ panel1.setLayout(borderLayout1);
+ panel2.setLayout(borderLayout2);
+ insetsPanel1.setLayout(flowLayout1);
+ insetsPanel2.setLayout(flowLayout1);
+ insetsPanel2.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+ gridLayout1.setRows(4);
+ gridLayout1.setColumns(1);
+ label1.setText(product);
+ label2.setText(version);
+ label3.setText(copyright);
+ label4.setText(comments);
+ insetsPanel3.setLayout(gridLayout1);
+ insetsPanel3.setBorder(BorderFactory.createEmptyBorder(10, 60, 10, 10));
+ button1.setText("Ok");
+ button1.addActionListener(this);
+ insetsPanel2.add(imageLabel, null);
+ panel2.add(insetsPanel2, BorderLayout.WEST);
+ this.getContentPane().add(panel1, null);
+ insetsPanel3.add(label1, null);
+ insetsPanel3.add(label2, null);
+ insetsPanel3.add(label3, null);
+ insetsPanel3.add(label4, null);
+ panel2.add(insetsPanel3, BorderLayout.CENTER);
+ insetsPanel1.add(button1, null);
+ panel1.add(insetsPanel1, BorderLayout.SOUTH);
+ panel1.add(panel2, BorderLayout.NORTH);
+ setResizable(true);
+ }
+ //Overridden so we can exit when window is closed
+ protected void processWindowEvent(WindowEvent e) {
+ if (e.getID() == WindowEvent.WINDOW_CLOSING) {
+ cancel();
+ }
+ super.processWindowEvent(e);
+ }
+ //Close the dialog
+ void cancel() {
+ dispose();
+ }
+ //Close the dialog on a button event
+ public void actionPerformed(ActionEvent e) {
+ if (e.getSource() == button1) {
+ cancel();
+ }
+ }
+}
View
99 bak/net/homeip/yusuke/cap/AboutDialog.java~2~
@@ -0,0 +1,99 @@
+package net.homeip.yusuke.cap;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.border.*;
+
+/**
+ * <p>Title: Samurai</p>
+ * <p>Description: a thread dump analyzing tool</p>
+ * <p>Copyright: Copyright (c) 2003,2004</p>
+ * <p> </p>
+ * @author Yusuke Yamamoto
+ * @version 1.0
+ */
+
+public class AboutDialog extends JDialog implements ActionListener {
+
+ JPanel panel1 = new JPanel();
+ JPanel panel2 = new JPanel();
+ JPanel insetsPanel1 = new JPanel();
+ JPanel insetsPanel2 = new JPanel();
+ JPanel insetsPanel3 = new JPanel();
+ JButton button1 = new JButton();
+ JLabel imageLabel = new JLabel();
+ JLabel label1 = new JLabel();
+ JLabel label2 = new JLabel();
+ JLabel label3 = new JLabel();
+ JLabel label4 = new JLabel();
+ ImageIcon image1 = new ImageIcon();
+ BorderLayout borderLayout1 = new BorderLayout();
+ BorderLayout borderLayout2 = new BorderLayout();
+ FlowLayout flowLayout1 = new FlowLayout();
+ GridLayout gridLayout1 = new GridLayout();
+ String product = "Samurai";
+ String version = "1.0";
+ String copyright = "Copyright (c) 2003,2004";
+ String comments = "a thread dump analyzing tool";
+ public AboutDialog(Frame parent) {
+ super(parent);
+ enableEvents(AWTEvent.WINDOW_EVENT_MASK);
+ try {
+ jbInit();
+ }
+ catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+ //Component initialization
+ private void jbInit() throws Exception {
+ image1 = new ImageIcon(net.homeip.yusuke.cap.MainFrame.class.getResource("about.png"));
+ imageLabel.setIcon(image1);
+ this.setTitle("About");
+ panel1.setLayout(borderLayout1);
+ panel2.setLayout(borderLayout2);
+ insetsPanel1.setLayout(flowLayout1);
+ insetsPanel2.setLayout(flowLayout1);
+ insetsPanel2.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
+ gridLayout1.setRows(4);
+ gridLayout1.setColumns(1);
+ label1.setText(product);
+ label2.setText(version);
+ label3.setText(copyright);
+ label4.setText(comments);
+ insetsPanel3.setLayout(gridLayout1);
+ insetsPanel3.setBorder(BorderFactory.createEmptyBorder(10, 60, 10, 10));
+ button1.setText("Ok");
+ button1.addActionListener(this);
+ insetsPanel2.add(imageLabel, null);
+ panel2.add(insetsPanel2, BorderLayout.WEST);
+ this.getContentPane().add(panel1, null);
+ insetsPanel3.add(label1, null);
+ insetsPanel3.add(label2, null);
+ insetsPanel3.add(label3, null);
+ insetsPanel3.add(label4, null);
+ panel2.add(insetsPanel3, BorderLayout.CENTER);
+ insetsPanel1.add(button1, null);
+ panel1.add(insetsPanel1, BorderLayout.SOUTH);
+ panel1.add(panel2, BorderLayout.NORTH);
+ setResizable(true);
+ }
+ //Overridden so we can exit when window is closed
+ protected void processWindowEvent(WindowEvent e) {
+ if (e.getID() == WindowEvent.WINDOW_CLOSING) {
+ cancel();
+ }
+ super.processWindowEvent(e);
+ }
+ //Close the dialog
+ void cancel() {
+ dispose();
+ }
+ //Close the dialog on a button event
+ public void actionPerformed(ActionEvent e) {
+ if (e.getSource() == button1) {
+ cancel();
+ }
+ }
+}
View
102 bak/net/homeip/yusuke/cap/AboutDialog.java~3~
@@ -0,0 +1,102 @@
+package net.homeip.yusuke.cap;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.border.*;
+
+/**
+ * <p>Title: Samurai</p>
+ * <p>Description: a thread dump analyzing tool</p>
+ * <p>Copyright: Copyright (c) 2003,2004</p>
+ * <p> </p>
+ * @author Yusuke Yamamoto
+ * @version 1.0
+ */
+
+public class AboutDialog extends JDialog implements ActionListener {
+
+ public JButton button1 = new JButton();
+ JLabel imageLabel = new JLabel();
+ public JLabel versionLabel = new JLabel();
+ public JLabel copyrightLabel = new JLabel();
+ ImageIcon image1 = new ImageIcon();
+ GridBagLayout gridBagLayout1 = new GridBagLayout();
+ JScrollPane jScrollPane1 = new JScrollPane();
+ public JTextArea releaseNote = new JTextArea();
+ public AboutDialog(Frame parent) {
+ super(parent);
+ enableEvents(AWTEvent.WINDOW_EVENT_MASK);
+ try {
+ jbInit();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ //Component initial