Browse files

This commit was manufactured by cvs2svn to create tag

'GROOVY_1_0_BETA_7'.

git-svn-id: http://svn.codehaus.org/groovy/tags/GROOVY_1_0_BETA_7@1435 a5544e8c-8a19-0410-ba12-f9af4593a198
  • Loading branch information...
1 parent abd938e commit 263d38f4fb7b17a5193f26162722462f5461f58d @codehaus-support codehaus-support committed Sep 29, 2004
Showing with 0 additions and 13,873 deletions.
  1. +0 −18 CVSROOT/checkoutlist
  2. +0 −15 CVSROOT/commitinfo
  3. +0 −5 CVSROOT/damagecontrol-groovy.conf
  4. +0 −10 CVSROOT/dctrigger.rb
  5. +0 −21 CVSROOT/editinfo
  6. +0 −83 CVSROOT/log_accum.conf
  7. +0 −26 CVSROOT/modules
  8. +0 −12 CVSROOT/notify
  9. +0 −13 CVSROOT/rcsinfo
  10. +0 −20 CVSROOT/taginfo
  11. +0 −21 CVSROOT/verifymsg
  12. +0 −120 groovy/groovy-native/README
  13. +0 −15 groovy/groovy-native/examples/001-standalone-executable/README
  14. +0 −19 groovy/groovy-native/examples/001-standalone-executable/Simple.groovy
  15. +0 −6 groovy/groovy-native/examples/001-standalone-executable/build.sh
  16. +0 −16 groovy/groovy-native/examples/README
  17. +0 −59 groovy/groovy-native/libgroovy/README
  18. +0 −10 groovy/groovy-native/libgroovy/asm-src
  19. +0 −44 groovy/groovy-native/libgroovy/build.sh
  20. +0 −128 groovy/groovy-native/libgroovy/groovy-src
  21. +0 −82 groovy/groovy-native/libgroovy/patch.diff
  22. +0 −18 groovy/modules/groovy-swt/.classpath
  23. +0 −2 groovy/modules/groovy-swt/.cvsignore
  24. +0 −18 groovy/modules/groovy-swt/.project
  25. +0 −47 groovy/modules/groovy-swt/LICENSE.txt
  26. +0 −59 groovy/modules/groovy-swt/README.txt
  27. +0 −47 groovy/modules/groovy-swt/maven.xml
  28. +0 −46 groovy/modules/groovy-swt/project.properties
  29. +0 −159 groovy/modules/groovy-swt/project.xml
  30. +0 −2 groovy/modules/groovy-swt/settings.props
  31. +0 −36 groovy/modules/groovy-swt/src/examples/groovy/jface/ApplicationWindowDemo.groovy
  32. +0 −39 groovy/modules/groovy-swt/src/examples/groovy/jface/PreferencesDemo.groovy
  33. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoApplicationWindow.java
  34. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoPreferences.java
  35. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoWizard.java
  36. +0 −87 groovy/modules/groovy-swt/src/examples/groovy/jface/WizardDemo.groovy
  37. +0 −31 groovy/modules/groovy-swt/src/examples/groovy/swt/AwtSwtDemo.groovy
  38. +0 −96 groovy/modules/groovy-swt/src/examples/groovy/swt/BrowserDemo.groovy
  39. +0 −97 groovy/modules/groovy-swt/src/examples/groovy/swt/FormDemo.groovy
  40. +0 −36 groovy/modules/groovy-swt/src/examples/groovy/swt/RunAwtSwtDemo.java
  41. +0 −16 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoBrowser.java
  42. +0 −17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTableTree.java
  43. +0 −17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTree.java
  44. +0 −17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunFormDemo.java
  45. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/swt/RunSashFormDemo.java
  46. +0 −20 groovy/modules/groovy-swt/src/examples/groovy/swt/RunTabDemo.java
  47. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/swt/RunTrayDemo.java
  48. +0 −54 groovy/modules/groovy-swt/src/examples/groovy/swt/SashFormDemo.groovy
  49. +0 −52 groovy/modules/groovy-swt/src/examples/groovy/swt/TabDemo.groovy
  50. +0 −43 groovy/modules/groovy-swt/src/examples/groovy/swt/TableTreeDemo.groovy
  51. +0 −53 groovy/modules/groovy-swt/src/examples/groovy/swt/TrayDemo.groovy
  52. +0 −49 groovy/modules/groovy-swt/src/examples/groovy/swt/TreeDemo.groovy
  53. +0 −66 groovy/modules/groovy-swt/src/examples/groovy/swt/guibuilder/GuiBuilderDemo.groovy
  54. +0 −23 groovy/modules/groovy-swt/src/examples/groovy/swt/guibuilder/RunGuiBuilderDemo.java
  55. +0 −18 groovy/modules/groovy-swt/src/examples/groovy/swt/guibuilder/Screen1.groovy
  56. +0 −17 groovy/modules/groovy-swt/src/examples/groovy/swt/guibuilder/Screen2.groovy
  57. +0 −101 groovy/modules/groovy-swt/src/main/groovy/jface/JFaceBuilder.java
  58. +0 −40 groovy/modules/groovy-swt/src/main/groovy/jface/factory/ActionImpl.java
  59. +0 −48 groovy/modules/groovy-swt/src/main/groovy/jface/factory/ContributionManagerFactory.java
  60. +0 −60 groovy/modules/groovy-swt/src/main/groovy/jface/factory/DoubleClickListenerFactory.java
  61. +0 −40 groovy/modules/groovy-swt/src/main/groovy/jface/factory/MenuManagerFactory.java
  62. +0 −36 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesDialogFactory.java
  63. +0 −52 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesFieldEditorFactory.java
  64. +0 −76 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesPageFactory.java
  65. +0 −67 groovy/modules/groovy-swt/src/main/groovy/jface/factory/SelectionChangedListenerFactory.java
  66. +0 −72 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WindowFactory.java
  67. +0 −37 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WizardDialogFactory.java
  68. +0 −59 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WizardPageFactory.java
  69. +0 −40 groovy/modules/groovy-swt/src/main/groovy/jface/impl/ActionImpl.java
  70. +0 −49 groovy/modules/groovy-swt/src/main/groovy/jface/impl/ApplicationWindowImpl.java
  71. +0 −45 groovy/modules/groovy-swt/src/main/groovy/jface/impl/PreferenceDialogImpl.java
  72. +0 −78 groovy/modules/groovy-swt/src/main/groovy/jface/impl/PreferencePageFieldEditorImpl.java
  73. +0 −50 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardDialogImpl.java
  74. +0 −60 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardImpl.java
  75. +0 −43 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardPageImpl.java
  76. +0 −18 groovy/modules/groovy-swt/src/main/groovy/swt/ClosureSupport.java
  77. +0 −19 groovy/modules/groovy-swt/src/main/groovy/swt/InvalidChildException.java
  78. +0 −21 groovy/modules/groovy-swt/src/main/groovy/swt/InvalidParentException.java
  79. +0 −346 groovy/modules/groovy-swt/src/main/groovy/swt/SwtBuilder.java
  80. +0 −162 groovy/modules/groovy-swt/src/main/groovy/swt/SwtUtils.java
  81. +0 −22 groovy/modules/groovy-swt/src/main/groovy/swt/UnKnownStyleException.java
  82. +0 −115 groovy/modules/groovy-swt/src/main/groovy/swt/convertor/ColorConverter.java
  83. +0 −37 groovy/modules/groovy-swt/src/main/groovy/swt/convertor/PointConverter.java
  84. +0 −119 groovy/modules/groovy-swt/src/main/groovy/swt/factory/AbstractSwtFactory.java
  85. +0 −32 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ActionFactory.java
  86. +0 −32 groovy/modules/groovy-swt/src/main/groovy/swt/factory/AwtSwtFactory.java
  87. +0 −62 groovy/modules/groovy-swt/src/main/groovy/swt/factory/Fontfactory.java
  88. +0 −211 groovy/modules/groovy-swt/src/main/groovy/swt/factory/FormFactory.java
  89. +0 −100 groovy/modules/groovy-swt/src/main/groovy/swt/factory/FormLayoutDataFactory.java
  90. +0 −99 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ImageFactory.java
  91. +0 −95 groovy/modules/groovy-swt/src/main/groovy/swt/factory/LayoutDataFactory.java
  92. +0 −58 groovy/modules/groovy-swt/src/main/groovy/swt/factory/LayoutFactory.java
  93. +0 −108 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ListenerFactory.java
  94. +0 −23 groovy/modules/groovy-swt/src/main/groovy/swt/factory/SwtFactory.java
  95. +0 −26 groovy/modules/groovy-swt/src/main/groovy/swt/factory/TrayFactory.java
  96. +0 −143 groovy/modules/groovy-swt/src/main/groovy/swt/factory/WidgetFactory.java
  97. +0 −57 groovy/modules/groovy-swt/src/main/groovy/swt/guibuilder/ApplicationGuiBuilder.java
  98. +0 −70 groovy/modules/groovy-swt/src/main/groovy/swt/guibuilder/RebuildFactory.java
  99. +0 −117 groovy/modules/groovy-swt/src/main/groovy/swt/guibuilder/RunScriptFactory.java
  100. +0 −62 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ExpansionListenerImpl.java
  101. +0 −91 groovy/modules/groovy-swt/src/main/groovy/swt/impl/HyperLinkListenerImpl.java
  102. +0 −36 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ListenerImpl.java
  103. +0 −87 groovy/modules/groovy-swt/src/main/groovy/swt/impl/LocationListenerImpl.java
  104. +0 −85 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ProgressListenerImpl.java
  105. +0 −58 groovy/modules/groovy-swt/src/main/groovy/swt/impl/StatusTextListenerImpl.java
  106. +0 −21 groovy/modules/groovy-swt/src/test/groovy/jface/JFaceBuilderTest.java
  107. +0 −53 groovy/modules/groovy-swt/src/test/groovy/jface/JFaceBuilderTest1.groovy
  108. 0 groovy/modules/groovy-swt/src/test/groovy/jface/test.properties
  109. +0 −20 groovy/modules/groovy-swt/src/test/groovy/swt/SwtBuilderTest.java
  110. +0 −127 groovy/modules/groovy-swt/src/test/groovy/swt/SwtBuilderTest1.groovy
  111. +0 −41 groovy/modules/groovy-swt/src/test/groovy/swt/SwtTest.java
  112. BIN groovy/modules/groovy-swt/src/test/groovy/swt/groovy-logo.png
  113. +0 −44 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/DynamicUIBuilder.java
  114. +0 −59 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/NamedObject.java
  115. +0 −14 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/NamedObjectUI.groovy
  116. +0 −36 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/RunDynamicUIDemo.java
  117. +0 −172 groovy/modules/gsql/build.xml
  118. +0 −2 groovy/modules/gsql/src/manifest.txt
  119. +0 −109 groovy/modules/gsql/src/org/javanicus/gsql/Column.groovy
  120. +0 −40 groovy/modules/gsql/src/org/javanicus/gsql/Database.groovy
  121. +0 −19 groovy/modules/gsql/src/org/javanicus/gsql/ForeignKey.groovy
  122. +0 −19 groovy/modules/gsql/src/org/javanicus/gsql/Index.groovy
  123. +0 −14 groovy/modules/gsql/src/org/javanicus/gsql/Reference.groovy
  124. +0 −141 groovy/modules/gsql/src/org/javanicus/gsql/RelationalBuilder.java
  125. +0 −735 groovy/modules/gsql/src/org/javanicus/gsql/SqlGenerator.groovy
  126. +0 −85 groovy/modules/gsql/src/org/javanicus/gsql/Table.groovy
  127. +0 −97 groovy/modules/gsql/src/org/javanicus/gsql/TypeMap.groovy
  128. +0 −4 groovy/modules/gsql/src/org/javanicus/gsql/Unique.groovy
  129. +0 −34 groovy/modules/gsql/test/org/javanicus/gsql/ColumnTest.groovy
  130. +0 −41 groovy/modules/gsql/test/org/javanicus/gsql/DatabaseTest.groovy
  131. +0 −50 groovy/modules/gsql/test/org/javanicus/gsql/RelationalBuilderTest.groovy
  132. +0 −46 groovy/modules/gsql/test/org/javanicus/gsql/SqlGeneratorTest.groovy
  133. +0 −31 groovy/modules/gsql/test/org/javanicus/gsql/TableTest.groovy
  134. +0 −170 groovy/modules/pages/src/main/groovy/modules/pages/GroovyPage.java
  135. +0 −344 groovy/modules/pages/src/main/groovy/modules/pages/GroovyPages.java
  136. +0 −171 groovy/modules/pages/src/main/groovy/modules/pages/GroovyRequest.java
  137. +0 −140 groovy/modules/pages/src/main/groovy/modules/pages/GroovySession.java
  138. +0 −172 groovy/modules/pages/src/main/groovy/modules/pages/GroovyWriter.java
  139. +0 −78 groovy/modules/pages/src/main/groovy/util/Proxy.java
  140. +0 −80 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Loader.java
  141. +0 −265 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Parse.java
  142. +0 −43 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Reverse.java
  143. +0 −140 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Scan.java
  144. +0 −58 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Strip.java
  145. +0 −20 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Tokens.java
  146. +0 −33 groovy/modules/pages/src/web/WEB-INF/web.xml
  147. +0 −45 groovy/modules/pages/src/web/default.htm
  148. +0 −85 groovy/modules/pages/src/web/jsp.gsp
  149. +0 −57 groovy/modules/pages/src/web/simple.groovy
  150. +0 −50 groovy/modules/pages/src/web/simple.gsp
  151. +0 −14 groovy/modules/pages/src/web/sql.gsp
  152. +0 −11 groovy/modules/pages/src/web/test1.groovy
  153. +0 −10 groovy/modules/pages/src/web/test2.groovy
  154. +0 −155 groovy/modules/pages/src/web/visible.gsp
  155. +0 −12 groovy/modules/process/.classpath
  156. +0 −17 groovy/modules/process/.project
  157. BIN groovy/modules/process/lib/concurrent.jar
  158. +0 −22 groovy/modules/process/src/conf/groovy-classworlds.conf
  159. +0 −22 groovy/modules/process/src/conf/groovyc-classworlds.conf
  160. +0 −22 groovy/modules/process/src/include/nativeprocess.h
  161. +0 −41 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/GridClosureProcess.java
  162. +0 −63 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/Groosh.java
  163. +0 −77 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/GrooshProcess.java
  164. +0 −37 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/LineClosureProcess.java
  165. +0 −55 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/ShellProcess.java
  166. +0 −120 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/StreamClosureProcess.java
  167. +0 −14 groovy/modules/process/src/main/com/baulsupp/process/AppProcess.java
  168. +0 −7 groovy/modules/process/src/main/com/baulsupp/process/CharSequenceSource.java
  169. +0 −55 groovy/modules/process/src/main/com/baulsupp/process/DevNull.java
  170. +0 −56 groovy/modules/process/src/main/com/baulsupp/process/FileStreams.java
  171. +0 −58 groovy/modules/process/src/main/com/baulsupp/process/IOUtil.java
  172. +0 −109 groovy/modules/process/src/main/com/baulsupp/process/JavaProcess.java
  173. +0 −13 groovy/modules/process/src/main/com/baulsupp/process/ProcessFactory.java
  174. +0 −25 groovy/modules/process/src/main/com/baulsupp/process/Sink.java
  175. +0 −7 groovy/modules/process/src/main/com/baulsupp/process/Source.java
  176. +0 −70 groovy/modules/process/src/main/com/baulsupp/process/StandardStreams.java
  177. +0 −73 groovy/modules/process/src/main/com/baulsupp/process/StringStreams.java
  178. +0 −4 groovy/modules/process/src/test_scripts/basic_cat.groovy
  179. +0 −6 groovy/modules/process/src/test_scripts/blah.txt
  180. +0 −5 groovy/modules/process/src/test_scripts/cat_to_file.groovy
  181. +0 −5 groovy/modules/process/src/test_scripts/dict.groovy
  182. +0 −9 groovy/modules/process/src/test_scripts/dict_args.groovy
  183. +0 −13 groovy/modules/process/src/test_scripts/each_line.groovy
  184. +0 −19 groovy/modules/process/src/test_scripts/find_grid.groovy
  185. +0 −6 groovy/modules/process/src/test_scripts/stdin_cat.groovy
  186. +0 −6 groovy/modules/process/src/test_scripts/tostring.groovy
  187. +0 −26 groovy/modules/process/todo.txt
  188. +0 −8 groovy/modules/xmlrpc/.classpath
  189. +0 −4 groovy/modules/xmlrpc/.cvsignore
  190. +0 −17 groovy/modules/xmlrpc/.project
  191. +0 −46 groovy/modules/xmlrpc/project.properties
  192. +0 −104 groovy/modules/xmlrpc/project.xml
  193. +0 −1 groovy/modules/xmlrpc/src/bin/dummy.txt
  194. +0 −1 groovy/modules/xmlrpc/src/conf/dummy.txt
  195. +0 −68 groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/XMLRPCCallFailureException.java
  196. +0 −528 groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/XMLRPCServer.java
  197. +0 −175 groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/XMLRPCServerProxy.java
  198. +0 −185 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/MinMLSocketServer.java
  199. +0 −314 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/http/MinMLHTTPServer.java
  200. +0 −68 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/xmlrpc/XMLRPCFailException.java
  201. +0 −471 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/xmlrpc/XMLRPCMessageProcessor.java
  202. +0 −739 groovy/modules/xmlrpc/src/main/uk/co/wilson/xml/MinML.java
  203. +0 −11 groovy/modules/xmlrpc/src/main/uk/org/xml/sax/DocumentHandler.java
  204. +0 −5 groovy/modules/xmlrpc/src/main/uk/org/xml/sax/Parser.java
  205. +0 −179 groovy/modules/xmlrpc/src/test/groovy/net/xmlrpc/GroovyXmlrpcTest.groovy
  206. +0 −1 groovy/modules/xmlrpc/xdocs/index.wiki
View
18 CVSROOT/checkoutlist
@@ -1,18 +0,0 @@
-# The "checkoutlist" file is used to support additional version controlled
-# administrative files in $CVSROOT/CVSROOT, such as template files.
-#
-# The first entry on a line is a filename which will be checked out from
-# the corresponding RCS file in the $CVSROOT/CVSROOT directory.
-# The remainder of the line is an error message to use if the file cannot
-# be checked out.
-#
-# File format:
-#
-# [<whitespace>]<filename><whitespace><error message><end-of-line>
-#
-# comment lines begin with '#'
-passwd
-log_accum.conf
-dctrigger.rbdctrigger.rb
-dctrigger.rb
-dctrigger.rb
View
15 CVSROOT/commitinfo
@@ -1,15 +0,0 @@
-# The "commitinfo" file is used to control pre-commit checks.
-# The filter on the right is invoked with the repository and a list
-# of files to check. A non-zero exit of the filter program will
-# cause the commit to be aborted.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being committed to, relative
-# to the $CVSROOT. For the first match that is found, then the remainder
-# of the line is the name of the filter to run.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
View
5 CVSROOT/damagecontrol-groovy.conf
@@ -1,5 +0,0 @@
-project_name: Groovy
-scm_spec: ":ext:dcontrol@localhost:/home/projects/groovy/scm:groovy/groovy-core"
-build_command_line: "maven dc"
-nag_email: groovy-dev@groovy.codehaus.org
-...
View
10 CVSROOT/dctrigger.rb
@@ -1,10 +0,0 @@
-require 'xmlrpc/client'
-
-url = ARGV[0]
-project_name = ARGV[1]
-
-puts "Nudging DamageControl on #{url} to build project #{project_name}"
-client = XMLRPC::Client.new2(url)
-build = client.proxy("build")
-result = build.trig(project_name, Time.now.utc.strftime("%Y%m%d%H%M%S"))
-puts result
View
21 CVSROOT/editinfo
@@ -1,21 +0,0 @@
-# The "editinfo" file is used to allow verification of logging
-# information. It works best when a template (as specified in the
-# rcsinfo file) is provided for the logging procedure. Given a
-# template with locations for, a bug-id number, a list of people who
-# reviewed the code before it can be checked in, and an external
-# process to catalog the differences that were code reviewed, the
-# following test can be applied to the code:
-#
-# Making sure that the entered bug-id number is correct.
-# Validating that the code that was reviewed is indeed the code being
-# checked in (using the bug-id number or a seperate review
-# number to identify this particular code set.).
-#
-# If any of the above test failed, then the commit would be aborted.
-#
-# Actions such as mailing a copy of the report to each reviewer are
-# better handled by an entry in the loginfo file.
-#
-# One thing that should be noted is the the ALL keyword is not
-# supported. There can be only one entry that matches a given
-# repository.
View
83 CVSROOT/log_accum.conf
@@ -1,83 +0,0 @@
-# The "log_accum.conf" file overrides the the defaults hard-coded in
-# the "log_accum.pl" script allowing admins to setup the log_accum.pl
-# once as executable, but not writable. Each project can then have
-# it's own "log_accum.conf" to configure the behaviour of their own
-# cvs commit messages.
-
-
-# MAIL TO
-#
-# When set, specifies the email address(es) to
-# receive commit messages. When left unset, the
-# script will attempt to guess the correct
-# mailing list using the repository name and
-# the MLISTHOST option.
-#
-MAIL_TO = scm@groovy.codehaus.org
-
-# MAIL FROM
-#
-# When set, specifies the email address that
-# all commit messages will be sent from.
-# Very usefull for setting up a "no reply"
-# address for commit messages.
-#
-# When not set, the script will guess the sender's
-# address by prefixing the cvs user's name to the
-# MLISTHOST option.
-#
-#MAIL_FROM = noreply@codehaus.org
-
-# MAIL HOST ADDRESS
-#
-# The host address to use when guessing either
-# the TO or FROM addresses.
-#MLISTHOST = codehaus.org
-
-# X-SENDER EMAIL HEADER
-#
-# When specified, adds an X-Sender header to the
-# emails sent so that users can use it to more
-# easily filter out cvs messages. This is very
-# nice for when there is no mailing list
-# dedicated to cvs commit messages.
-#
-XSENDER = Groovy-CVS
-
-# REPLY-TO EMAIL ADDRESS
-#
-# When REPLYTO is set an SMTP "Reply-To" email
-# header will be added. This is very useful
-# for keeping development discussion on a
-# dev list even when cvs messages go a cvs list.
-#
-REPLYTO = dev@groovy.codehaus.org
-
-# SUBJECT PREFIX
-#
-# This text, plus a space, will be prepended
-# to the subject line of the commit message.
-# When the option specified with no value, no
-# prefix will be used.
-#
-SUBJECT_PREFIX =
-
-# MESSAGE SIZE LIMIT
-#
-# If the delta info exceeds this threshold, no diff will be
-# mailed/logged; as a replacement for this, URLs pointing
-# to the corresponding ViewCVS diffs will be constructed and
-# included in the mail/log message.
-#
-# 0 = no treshold, unlimited diffs
-# x = maximum size of the diff in kb
-#
-#SIZELIMIT = 100;
-
-# VIEWCVS URL
-#
-# Specify here the URL to ViewCVS (without trailing slash!)
-# If left unset, the script will attempt to guess the correct
-# value.
-#
-VIEWCVS = "http://cvs.groovy.codehaus.org/groovy";
View
26 CVSROOT/modules
@@ -1,26 +0,0 @@
-# Three different line formats are valid:
-# key -a aliases...
-# key [options] directory
-# key [options] directory files...
-#
-# Where "options" are composed of:
-# -i prog Run "prog" on "cvs commit" from top-level of module.
-# -o prog Run "prog" on "cvs checkout" of module.
-# -e prog Run "prog" on "cvs export" of module.
-# -t prog Run "prog" on "cvs rtag" of module.
-# -u prog Run "prog" on "cvs update" of module.
-# -d dir Place module in directory "dir" instead of module name.
-# -l Top-level directory only -- do not recurse.
-#
-# NOTE: If you change any of the "Run" options above, you'll have to
-# release and re-checkout any working directories of these modules.
-#
-# And "directory" is a path to a directory relative to $CVSROOT.
-#
-# The "-a" option specifies an alias. An alias is interpreted as if
-# everything on the right of the "-a" had been typed on the command line.
-#
-# You can encode a module within a module by using the special '&'
-# character to interpose another module into the current module. This
-# can be useful for creating a module that consists of many directories
-# spread out over the entire source repository.
View
12 CVSROOT/notify
@@ -1,12 +0,0 @@
-# The "notify" file controls where notifications from watches set by
-# "cvs watch add" or "cvs edit" are sent. The first entry on a line is
-# a regular expression which is tested against the directory that the
-# change is being made to, relative to the $CVSROOT. If it matches,
-# then the remainder of the line is a filter program that should contain
-# one occurrence of %s for the user to notify, and information on its
-# standard input.
-#
-# "ALL" or "DEFAULT" can be used in place of the regular expression.
-#
-# For example:
-#ALL mail -s "CVS notification" %s
View
13 CVSROOT/rcsinfo
@@ -1,13 +0,0 @@
-# The "rcsinfo" file is used to control templates with which the editor
-# is invoked on commit and import.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being made to, relative to the
-# $CVSROOT. For the first match that is found, then the remainder of the
-# line is the name of the file that contains the template.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
View
20 CVSROOT/taginfo
@@ -1,20 +0,0 @@
-# The "taginfo" file is used to control pre-tag checks.
-# The filter on the right is invoked with the following arguments:
-#
-# $1 -- tagname
-# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
-# $3 -- repository
-# $4-> file revision [file revision ...]
-#
-# A non-zero exit of the filter program will cause the tag to be aborted.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being committed to, relative
-# to the $CVSROOT. For the first match that is found, then the remainder
-# of the line is the name of the filter to run.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
View
21 CVSROOT/verifymsg
@@ -1,21 +0,0 @@
-# The "verifymsg" file is used to allow verification of logging
-# information. It works best when a template (as specified in the
-# rcsinfo file) is provided for the logging procedure. Given a
-# template with locations for, a bug-id number, a list of people who
-# reviewed the code before it can be checked in, and an external
-# process to catalog the differences that were code reviewed, the
-# following test can be applied to the code:
-#
-# Making sure that the entered bug-id number is correct.
-# Validating that the code that was reviewed is indeed the code being
-# checked in (using the bug-id number or a seperate review
-# number to identify this particular code set.).
-#
-# If any of the above test failed, then the commit would be aborted.
-#
-# Actions such as mailing a copy of the report to each reviewer are
-# better handled by an entry in the loginfo file.
-#
-# One thing that should be noted is the the ALL keyword is not
-# supported. There can be only one entry that matches a given
-# repository.
View
120 groovy/groovy-native/README
@@ -1,120 +0,0 @@
-This is a proof-of-concept for compiling Groovy to native code.
-
-Goals:
- - Better performance / reduced overheads (cpu, memory, start-up time).
- - Appealing alternative to Perl/Python/Ruby/shell-scripts.
- - Simple install (src tarball, RPM, dpkg, windows installer, OS-X whatever).
- - No JVM required.
- - Ability to use Groovy to access less Javaish libraries (POSIXy stuff, MFC, .NET).
- - Ability to use Groovy (and Java) objects from other languages (C, C++, Perl, Python, Ruby, .NET, etc)
-
-WARNING: This is an experiment. It's a proof-of-concept. It probably won't work. But maybe it will.
-
-The first attempt at this package uses the GNU GCJ compiler. This is built on top of GCC and is
-available for UNIXy platforms (including Linux and OS-X) and Windows (with Cygwin).
-
-These are the first set of goals for the experiment.
-
-
-
-*** Goal 1 : Native standalone executable of .groovy file.
-[Complete]
-
-The existing Groovy compiler (running on a JVM) can compile .groovy files to .class files.
-GCJ can then compile these .class files to .o binary objects.
-GCJ can link these objects (together with a native version of the Groovy runtime library) into a
-native executable.
-
-The challenge is building the native runtime library. In particular, identifying if the runtime
-byte-code generation, custom class-loaders and dynamic proxies will cause problems when moved to
-native code.
-
-Certain features of the Groovy language may be excluded to meet this goal and a JVM is still
-required at build time.
-
-
-
-*** Goal 2 : Native Groovy libraries.
-[In progress]
-
-Compile a collection of .groovy files into a .so that can be linked to from other Groovy or native
-libraries.
-
-Provide samples for Groovy, C and C++ apps all linking to another Groovy library.
-
-
-
-*** Goal 3 : Native .groovy compiler.
-[Not started]
-
-The actual Groovy compiler should be native (as well as the runtime) allowing Groovy to be developed
-entirely without a JVM present.
-
-
-
-*** Goal 4 : Usable tool set.
-[In progress]
-
-A set of simple wrapper tools should be provided for common features:
- - Compiling and linking a Groovy library or standalone executable.
- - JIT style interpreter (like Python) that runs a Groovy script directly by recompiling if necessary.
- - #!/usr/local/bin/groovy style declaration for scripts allowing direct invocation.
-
-
-
-*** Goal 5 : Runtime interpreter.
-[Not started]
-
-Allow Groovy snippets to be evaluated dynamically at runtime (the functionality of GroovyClassLoader).
-This could get tricky.
-
-
-
-*** Goal 6 : Complete language features.
-[Not started]
-
-Get all the unit tests running on the native Groovy. This excludes Java specific extras such as JMS
-and Servlets.
-
-
-
-*** Goal 7 : Installation bundle.
-[Not started]
-
-Provide a UNIX installation bundle that contains scripts and instructions for getting native Groovy
-running on a machine.
-
-
-
-*** Goal 8 : Optimizations.
-[Not started]
-
-Profile code to see how it can be made snappier. Especially important is the startup time. A plain
-GCJ compiled Java file starts within <50ms, whereas Groovy is taking much longer.
-
-
-
-*** Goal 9 : Provide Groovy with simple access to native libraries.
-[Not started]
-
-Extend the Groovy library and build tools to allow easy access to code outside of Groovy/Java from
-Groovy classes.
-
-Something like:
-
-import ncurses // use libncurses/ncurses.h
-class Thingy {
- void doStuff(name) {
- ncurses.printw("Hello ${name}") // print string
- ncurses.refresh() // display it on screen
- ncurses.getch() // wait for key press
- }
-}
-
-
-
-
-
-
-
-- Joe Walnes <joe@thoughtworks.net>
View
15 groovy/groovy-native/examples/001-standalone-executable/README
@@ -1,15 +0,0 @@
-Read README in parent directory first. And read the README in the grand-parent directory
-before that! Seriously, it's important!
-
-
-
-This demo simply compiles a single Simple.groovy class into a native executable that can
-be invoked using ./Simple
-
-Steps:
- * Read the other README files.
- * ./build.sh
- * ./Simple
-
-
-- Joe Walnes <joe@thoughtworks.net>
View
19 groovy/groovy-native/examples/001-standalone-executable/Simple.groovy
@@ -1,19 +0,0 @@
-class Simple {
- doSomething() {
- data = ["name": "James", "location": "London"]
- for (e in data) {
- println("entry ${e.key} is ${e.value}")
- }
- }
-
- closureExample(collection) {
- collection.each { println("value ${it}") }
- }
-
- static void main(args) {
- values = [1, 2, 3, "abc", "moo"]
- foo = new Simple()
- foo.closureExample(values)
- foo.doSomething()
- }
-}
View
6 groovy/groovy-native/examples/001-standalone-executable/build.sh
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-$GROOVY_HOME/bin/groovyc Simple.groovy
-CLASSPATH=../../libgroovy/libgroovy.jar gcj --main=Simple -o Simple -L../../libgroovy -lgroovy *.class
-rm -rf *.class
-
View
16 groovy/groovy-native/examples/README
@@ -1,16 +0,0 @@
-These are the examples for libgroovy. If you don't know what I'm talking about, read
-the README in the parent directory.
-
-Before running any of the examples:
- * Build libgroovy (instructions in libgroovy directory).
- * Set GROOVY_HOME to wherever Groovy may reside.
- * Append the libgroovy directory to LD_LIBRARY_PATH if not already present.
-
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/groovy-native/libgroovy
-
-The example directory names are prefixed with a number so you can step through the
-examples in a logical order.
-
-
-- Joe Walnes <joe@thoughtworks.net>
-
View
59 groovy/groovy-native/libgroovy/README
@@ -1,59 +0,0 @@
-See README in parent directory before reading on.
-
-Okay, so now you know what this is all about.
-
-
-
-*** Introduction
-
-libgroovy is the core native Groovy library for runtime use. Any Groovy application
-requires this library (and the standard libgcj libraries) to run.
-
-libgroovy only contains a subset of the standard Groovy library. Currently it only
-runs basic Groovy scripts.
-
-You may notice that there are no actual source files here. This is because libgroovy
-is built from the Java source files from Groovy. The source files for the Java ASM
-library are also required.
-
-
-
-*** Building the library.
-
-This library currently only compiles on UNIX.
-
-You need:
- - JDK.
- - GCJ.
- - The Java source for Groovy and ASM.
- - Bash.
-
-Edit build.sh and set the appropriate variables at the top of the script.
-
-./build.sh
-(may take some time and generate a collection of warnings - but hopefully no errors).
-
-If all goes to plan, you should end up with libgroovy.so and libgroovy.jar in the current
-directory.
-
-
-
-*** Notes on how the library is built.
-
-The stripped down library only tries to compile the classes listed in groovy-src and asm-src.
-
-Certain tweaks needed to be made to get the source to compile as GCJ only partially supports
-the J2SE1.4 library. Rather than modify the Groovy source, build.sh patches the source using
-patch.diff to get the code to compile (although nobbling some features in doing so).
-
-
-
-*** How to use the library.
-
-Coming soon. In the mean time, look at one of the examples.
-
-
-
-- Joe Walnes <joe@thoughtworks.net>
-
-
View
10 groovy/groovy-native/libgroovy/asm-src
@@ -1,10 +0,0 @@
-org/objectweb/asm/ClassVisitor.java
-org/objectweb/asm/ClassWriter.java
-org/objectweb/asm/CodeVisitor.java
-org/objectweb/asm/Constants.java
-org/objectweb/asm/CodeWriter.java
-org/objectweb/asm/Edge.java
-org/objectweb/asm/Item.java
-org/objectweb/asm/Label.java
-org/objectweb/asm/Type.java
-org/objectweb/asm/ByteVector.java
View
44 groovy/groovy-native/libgroovy/build.sh
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-# Ensure these paths are correct
-
-#JAVA_HOME=/usr/local/java
-GROOVY_HOME=~/groovy-1.0-beta-2
-GROOVY_SRC=$GROOVY_HOME/src/main
-ASM_SRC=~/ASM/dev/src
-
-# End of paths
-
-
-
-
-BUILD_DIR=build
-LIB_NAME=groovy
-
-rm -rf $BUILD_DIR lib$LIB_NAME.{jar,so}
-mkdir -p $BUILD_DIR
-
-BASE_DIR=`pwd`
-cd $BUILD_DIR
-BUILD_DIR=`pwd`
-cd $BASE_DIR
-
-# Copy mimimum required source files to temp directory
-(cd $GROOVY_SRC && cp --parents `grep -v '#' $BASE_DIR/groovy-src` $BUILD_DIR)
-(cd $ASM_SRC && cp --parents `grep -v '#' $BASE_DIR/asm-src` $BUILD_DIR)
-
-# Patch the source files
-patch --silent -f -p0 -d $BUILD_DIR < patch.diff
-
-# .java -> .class
-find $BUILD_DIR -name \*.java | xargs gcj -C
-
-# .class -> .jar
-jar -cf lib$LIB_NAME.jar -C $BUILD_DIR .
-
-# .class -> .so
-gcj -shared -o lib$LIB_NAME.so lib$LIB_NAME.jar
-
-# clean up
-rm -rf $BUILD_DIR
-
View
128 groovy/groovy-native/libgroovy/groovy-src
@@ -1,128 +0,0 @@
-groovy/lang/Closure.java
-groovy/lang/ClosureException.java
-groovy/lang/GString.java
-groovy/lang/GroovyClassLoader.java
-groovy/lang/GroovyLog.java
-groovy/lang/GroovyObject.java
-groovy/lang/GroovyObjectSupport.java
-groovy/lang/GroovyShell.java
-groovy/lang/IntRange.java
-groovy/lang/MetaClass.java
-groovy/lang/MetaClassRegistry.java
-groovy/lang/NonEmptySequence.java
-groovy/lang/ObjectRange.java
-groovy/lang/Range.java
-groovy/lang/Reference.java
-groovy/lang/Script.java
-groovy/lang/ScriptContext.java
-groovy/lang/Sequence.java
-groovy/lang/Tuple.java
-groovy/util/Bitwise.java
-groovy/util/BuilderSupport.java
-groovy/util/ClosureComparator.java
-groovy/util/IndentPrinter.java
-groovy/util/MapEntry.java
-groovy/util/Node.java
-groovy/util/NodeBuilder.java
-groovy/util/NodePrinter.java
-groovy/util/OrderBy.java
-org/codehaus/groovy/GroovyException.java
-org/codehaus/groovy/ast/ASTNode.java
-org/codehaus/groovy/ast/ClassNode.java
-org/codehaus/groovy/ast/CodeVisitorSupport.java
-org/codehaus/groovy/ast/CompileUnit.java
-org/codehaus/groovy/ast/ConstructorNode.java
-org/codehaus/groovy/ast/FieldNode.java
-org/codehaus/groovy/ast/GroovyClassVisitor.java
-org/codehaus/groovy/ast/GroovyCodeVisitor.java
-org/codehaus/groovy/ast/InnerClassNode.java
-org/codehaus/groovy/ast/MetadataNode.java
-org/codehaus/groovy/ast/MethodNode.java
-org/codehaus/groovy/ast/MixinNode.java
-org/codehaus/groovy/ast/ModuleNode.java
-org/codehaus/groovy/ast/Parameter.java
-org/codehaus/groovy/ast/PropertyNode.java
-org/codehaus/groovy/ast/expr/ArgumentListExpression.java
-org/codehaus/groovy/ast/expr/ArrayExpression.java
-org/codehaus/groovy/ast/expr/BinaryExpression.java
-org/codehaus/groovy/ast/expr/BooleanExpression.java
-org/codehaus/groovy/ast/expr/ClassExpression.java
-org/codehaus/groovy/ast/expr/ClosureExpression.java
-org/codehaus/groovy/ast/expr/ConstantExpression.java
-org/codehaus/groovy/ast/expr/ConstructorCallExpression.java
-org/codehaus/groovy/ast/expr/Expression.java
-org/codehaus/groovy/ast/expr/FieldExpression.java
-org/codehaus/groovy/ast/expr/GStringExpression.java
-org/codehaus/groovy/ast/expr/ListExpression.java
-org/codehaus/groovy/ast/expr/MapEntryExpression.java
-org/codehaus/groovy/ast/expr/MapExpression.java
-org/codehaus/groovy/ast/expr/MethodCallExpression.java
-org/codehaus/groovy/ast/expr/NamedArgumentListExpression.java
-org/codehaus/groovy/ast/expr/NotExpression.java
-org/codehaus/groovy/ast/expr/PostfixExpression.java
-org/codehaus/groovy/ast/expr/PrefixExpression.java
-org/codehaus/groovy/ast/expr/PropertyExpression.java
-org/codehaus/groovy/ast/expr/RangeExpression.java
-org/codehaus/groovy/ast/expr/RegexExpression.java
-org/codehaus/groovy/ast/expr/StaticMethodCallExpression.java
-org/codehaus/groovy/ast/expr/TupleExpression.java
-org/codehaus/groovy/ast/expr/VariableExpression.java
-org/codehaus/groovy/ast/stmt/AssertStatement.java
-org/codehaus/groovy/ast/stmt/BlockStatement.java
-org/codehaus/groovy/ast/stmt/BreakStatement.java
-org/codehaus/groovy/ast/stmt/CaseStatement.java
-org/codehaus/groovy/ast/stmt/CatchStatement.java
-org/codehaus/groovy/ast/stmt/ContinueStatement.java
-org/codehaus/groovy/ast/stmt/DoWhileStatement.java
-org/codehaus/groovy/ast/stmt/EmptyStatement.java
-org/codehaus/groovy/ast/stmt/ExpressionStatement.java
-org/codehaus/groovy/ast/stmt/ForStatement.java
-org/codehaus/groovy/ast/stmt/IfStatement.java
-org/codehaus/groovy/ast/stmt/ReturnStatement.java
-org/codehaus/groovy/ast/stmt/Statement.java
-org/codehaus/groovy/ast/stmt/SwitchStatement.java
-org/codehaus/groovy/ast/stmt/SynchronizedStatement.java
-org/codehaus/groovy/ast/stmt/ThrowStatement.java
-org/codehaus/groovy/ast/stmt/TryCatchStatement.java
-org/codehaus/groovy/ast/stmt/WhileStatement.java
-org/codehaus/groovy/classgen/ClassGenerator.java
-org/codehaus/groovy/classgen/ClassGeneratorException.java
-org/codehaus/groovy/classgen/VariableScopeCodeVisitor.java
-org/codehaus/groovy/classgen/CompilerFacade.java
-org/codehaus/groovy/classgen/GeneratorContext.java
-org/codehaus/groovy/classgen/MethodCaller.java
-org/codehaus/groovy/classgen/Variable.java
-org/codehaus/groovy/classgen/Verifier.java
-org/codehaus/groovy/classgen/VerifierCodeVisitor.java
-org/codehaus/groovy/runtime/ClassExtender.java
-org/codehaus/groovy/runtime/DefaultGroovyMethods.java
-org/codehaus/groovy/runtime/Invoker.java
-org/codehaus/groovy/runtime/InvokerException.java
-org/codehaus/groovy/runtime/InvokerHelper.java
-org/codehaus/groovy/runtime/InvokerInvocationException.java
-org/codehaus/groovy/runtime/IteratorClosureAdapter.java
-org/codehaus/groovy/runtime/MethodClosure.java
-org/codehaus/groovy/runtime/MethodHelper.java
-org/codehaus/groovy/runtime/NoSuchClassException.java
-org/codehaus/groovy/runtime/NoSuchMethodException.java
-org/codehaus/groovy/runtime/NoSuchPropertyException.java
-org/codehaus/groovy/syntax/AbstractTokenStream.java
-org/codehaus/groovy/syntax/LookAheadExhaustionException.java
-org/codehaus/groovy/syntax/SyntaxException.java
-org/codehaus/groovy/syntax/Token.java
-org/codehaus/groovy/syntax/TokenStream.java
-org/codehaus/groovy/syntax/TokenMismatchException.java
-org/codehaus/groovy/syntax/lexer/AbstractCharStream.java
-org/codehaus/groovy/syntax/lexer/CharStream.java
-org/codehaus/groovy/syntax/lexer/InputStreamCharStream.java
-org/codehaus/groovy/syntax/lexer/Lexer.java
-org/codehaus/groovy/syntax/lexer/LexerTokenStream.java
-org/codehaus/groovy/syntax/lexer/UnexpectedCharacterException.java
-org/codehaus/groovy/syntax/lexer/LexerException.java
-org/codehaus/groovy/syntax/lexer/UnterminatedStringLiteralException.java
-org/codehaus/groovy/syntax/parser/ASTBuilder.java
-org/codehaus/groovy/syntax/parser/CSTNode.java
-org/codehaus/groovy/syntax/parser/UnexpectedTokenException.java
-org/codehaus/groovy/syntax/parser/ParserException.java
-org/codehaus/groovy/syntax/parser/Parser.java
-org/codehaus/groovy/syntax/lexer/StringCharStream.java
View
82 groovy/groovy-native/libgroovy/patch.diff
@@ -1,82 +0,0 @@
---- org/codehaus/groovy/runtime/Invoker.java 2004-01-06 16:37:49.000000000 +0000
-+++ org/codehaus/groovy/runtime/Invoker.java 2004-01-06 16:38:46.000000000 +0000
-@@ -62,8 +62,6 @@
- import java.util.regex.Matcher;
- import java.util.regex.Pattern;
-
--import com.mockobjects.util.NotImplementedException;
--
- /**
- * A helper class to invoke methods or extract properties on arbitrary Java objects dynamically
- *
-@@ -244,7 +242,7 @@
- return matcher.group();
- }
- public void remove() {
-- throw new NotImplementedException();
-+ throw new UnsupportedOperationException();
- }
- };
- }
---- ./org/codehaus/groovy/runtime/InvokerHelper.java.orig 2004-01-06 17:13:41.000000000 +0000
-+++ ./org/codehaus/groovy/runtime/InvokerHelper.java 2004-01-06 17:14:24.000000000 +0000
-@@ -170,7 +170,7 @@
- }
- else if (object instanceof Matcher) {
- Matcher matcher = (Matcher) object;
-- return matcher.find();
-+ throw new UnsupportedOperationException("Matcher.find()");
- }
- else if (object instanceof Collection) {
- Collection collection = (Collection) object;
---- ./org/codehaus/groovy/runtime/Invoker.java.orig 2004-01-06 17:14:52.000000000 +0000
-+++ ./org/codehaus/groovy/runtime/Invoker.java 2004-01-06 17:17:41.000000000 +0000
-@@ -227,8 +227,7 @@
- public boolean hasNext() {
- if (done) return false;
- if (!found) {
-- found = matcher.find();
-- if (!found) done = true;
-+ throw new UnsupportedOperationException("Matcher.find()");
- }
- return found;
- }
-@@ -239,7 +238,7 @@
- }
- }
- found = false;
-- return matcher.group();
-+ throw new UnsupportedOperationException("Matcher.group()");
- }
- public void remove() {
- throw new UnsupportedOperationException();
-@@ -485,7 +484,7 @@
- pattern = Pattern.compile(toString(right));
- }
- String stringToCompare = toString(left);
-- return pattern.matcher(stringToCompare).matches();
-+ throw new UnsupportedOperationException("Matcher");
- }
-
- /**
---- ./org/codehaus/groovy/runtime/DefaultGroovyMethods.java.orig 2004-01-06 17:18:17.000000000 +0000
-+++ ./org/codehaus/groovy/runtime/DefaultGroovyMethods.java 2004-01-06 17:19:36.000000000 +0000
-@@ -221,7 +221,7 @@
- }
-
- public static boolean isCase(Pattern caseValue, Object switchValue) {
-- return caseValue.matcher(switchValue.toString()).matches();
-+ throw new UnsupportedOperationException("Matcher.matches()");
- }
-
- // Collection based methods
-@@ -850,8 +850,7 @@
- }
-
- public static String minus(String left, Object value) {
-- String text = toString(value);
-- return left.replaceFirst(text, "");
-+ throw new UnsupportedOperationException("String.replaceFirst()");
- }
-
- public static String multiply(String self, Number factor) {
View
18 groovy/modules/groovy-swt/.classpath
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src/main"/>
- <classpathentry kind="src" path="src/examples"/>
- <classpathentry output="target/test-classes" kind="src" path="src/test"/>
- <classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="var" path="MAVEN_REPO/asm/jars/asm-1.4.3.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/commons-collections/jars/commons-collections-3.0.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/commons-logging/jars/commons-logging-1.0.3.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/groovy/jars/groovy-1.0-beta-6.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/swt/jars/swt-win32-3.0.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/swt/jars/jface-3.0.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/swt/jars/forms-3.0.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/swt/jars/runtime-3.0.jar"/>
- <classpathentry kind="var" path="MAVEN_REPO/swt/jars/osgi-3.0.jar"/>
- <classpathentry kind="output" path="target/classes"/>
-</classpath>
View
2 groovy/modules/groovy-swt/.cvsignore
@@ -1,2 +0,0 @@
-*.log
-target
View
18 groovy/modules/groovy-swt/.project
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<projectDescription>
- <name>groovy-swt</name>
- <comment>groovy-swt</comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
View
47 groovy/modules/groovy-swt/LICENSE.txt
@@ -1,47 +0,0 @@
-
-
-/*
- $Id$
-
- Copyright 2003 (C) James Strachan and Bob Mcwhirter. All Rights Reserved.
-
- Redistribution and use of this software and associated documentation
- ("Software"), with or without modification, are permitted provided
- that the following conditions are met:
-
- 1. Redistributions of source code must retain copyright
- statements and notices. Redistributions must also contain a
- copy of this document.
-
- 2. Redistributions in binary form must reproduce the
- above copyright notice, this list of conditions and the
- following disclaimer in the documentation and/or other
- materials provided with the distribution.
-
- 3. The name "groovy" must not be used to endorse or promote
- products derived from this Software without prior written
- permission of The Codehaus. For written permission,
- please contact info@codehaus.org.
-
- 4. Products derived from this Software may not be called "groovy"
- nor may "groovy" appear in their names without prior written
- permission of The Codehaus. "groovy" is a registered
- trademark of The Codehaus.
-
- 5. Due credit should be given to The Codehaus -
- http://groovy.codehaus.org/
-
- THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS
- ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
- NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- OF THE POSSIBILITY OF SUCH DAMAGE.
-
- */
View
59 groovy/modules/groovy-swt/README.txt
@@ -1,59 +0,0 @@
-- Getting started
-
-================================================================
-== installing on windows
-================================================================
-As the current swt libs are not on ibiblio you have to manually
-install them.
-I case you already have eclipse3.0 installed, all the libs can be found in
-the plugins directory.
-
-copy
- eclipse/plugins/org.eclipse.swt.win32_3.0.0/ws/win32/swt.jar
-to
- maven/repository/swt/jars/swt-win32-3.0.jar
-
-
-copy
- eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar
-to
- maven/repository/swt/jars/jface-3.0.jar
-
-
-copy
- eclipse/plugins/org.eclipse.ui.forms_3.0.0/forms.jar
-to
- maven/repository/swt/jars/forms-3.0.jar
-
-copy
- eclipse/plugins/org.eclipse.core.runtime_3.0.0/runtime.jar
-to
- maven/repository/swt/jars/runtime-3.0.jar
-
-
-copy
- eclipse/plugins/org.eclipse.osgi_3.0.0/runtime.jar
-to
- maven/repository/swt/jars/runtime-3.0.jar
-
-
-copy
- eclipse/plugins/org.eclipse.swt.win32_3.0.0/os/win32/x86/swt-awt-win32-3062.dll
- eclipse/plugins/org.eclipse.swt.win32_3.0.0/os/win32/x86/swt-win32-3062.dll
-to
- a directory in your system environment variable $PATH
-(Alternatively you can run the examples by using the -Djava.library.path vm argument)
-
-All test cases will also fail when you do not have these libraries properly installed.
-
-Alternatively you can download the RCP Runtime Binary from
-the www.eclipse.org download pages. This download
-also contains most libraries but the forms.jar is missing.
-
-================================================================
-== running the examples
-================================================================
-The examples can be found in the src/examples subdirectory.
-For every example there is a java main class you can run.
-
-
View
47 groovy/modules/groovy-swt/maven.xml
@@ -1,47 +0,0 @@
-<project default="default" xmlns:j="jelly:core" xmlns:u="jelly:util" >
-
- <goal name="default" prereqs="clean, groovy:compile-tests">
- </goal>
-
- <goal name="setclasspath">
- <path id="test.classpath">
- <pathelement path="${maven.build.dest}"/>
- <pathelement path="target/classes"/>
- <pathelement path="target/test-classes"/>
- <path refid="maven.dependency.classpath"/>
- </path>
- <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="test.classpath"/>
- </goal>
-
- <goal name="groovy:compile" prereqs="java:compile, setclasspath" description="Compiles the main code">
- <copy todir="${basedir}/target/classes">
- <fileset dir="${basedir}/src/main">
- <include name="**/*.groovy"/>
- <exclude name="CVS/*"/>
- </fileset>
- </copy>
- <groovyc destdir="${basedir}/target/classes" srcdir="${basedir}/target/classes" listfiles="true">
- <classpath refid="test.classpath"/>
- </groovyc>
- </goal>
-
- <goal name="groovy:compile-tests" prereqs="groovy:compile, setclasspath" description="Compiles the test cases">
- <mkdir dir="${basedir}/target/test-classes"/>
- <copy todir="${basedir}/target/test-classes">
- <fileset dir="${basedir}/src/test">
- <include name="**/*.groovy"/>
- <exclude name="**/notworking/*.groovy"/>
- <exclude name="**/parser/*.groovy"/>
- <exclude name="CVS/*"/>
- </fileset>
- </copy>
- <touch>
- <fileset dir="${basedir}/target/test-classes" includes="**/*.groovy"/>
- </touch>
- <groovyc destdir="${basedir}/target/test-classes" srcdir="${basedir}/target/test-classes" listfiles="true">
- <classpath refid="test.classpath"/>
- </groovyc>
- </goal>
-
-
-</project>
View
46 groovy/modules/groovy-swt/project.properties
@@ -1,46 +0,0 @@
-maven.compile.source=1.4
-maven.compile.target=1.4
-maven.test.source=1.4
-maven.compile.deprecation=true
-maven.compile.debug=true
-maven.compile.optimize=true
-
-maven.javadoc.links=http://java.sun.com/j2se/1.4.1/docs/api/
-maven.javadoc.source=1.4
-
-maven.test.search.classdir = true
-
-maven.junit.fork=true
-maven.junit.usefile=true
-
-groovy.install.staging.dest=${maven.build.dir}/install/
-maven.html2xdoc.dir=${maven.build.dir}/html
-
-maven.xdoc.date = left
-
-#####################################################
-# codehaus theme
-#####################################################
-maven.xdoc.theme.url=http://codehaus.org/codehaus-style.css
-
-#####################################################
-# Where the jars are uploaded
-#####################################################
-maven.repo.central = dist.codehaus.org
-maven.repo.central.directory = /www/dist.codehaus.org
-
-#maven.repo.remote=http://www.ibiblio.org/maven
-maven.repo.remote=http://dist.codehaus.org
-
-
-#####################################################
-# swt platform
-# possible values, win32, linux-gtk, macosx
-#
-# for linux-gtk enable gtk deps in project.xml
-#####################################################
-platform=win32
-#platform=linux-gtk
-#platform=macosx
-
-
View
159 groovy/modules/groovy-swt/project.xml
@@ -1,159 +0,0 @@
-<project>
- <pomVersion>3</pomVersion>
- <name>groovy-swt</name>
- <groupId>groovy-swt</groupId>
- <artifactId>groovy-swt</artifactId>
- <currentVersion>0.2</currentVersion>
- <organization>
- <name>The Codehaus</name>
- <url>http://codehaus.org</url>
- <logo>http://codehaus.org/codehaus-small.gif</logo>
- </organization>
- <inceptionYear>2004</inceptionYear>
- <package>groovy.swt, groovy.jface</package>
- <description>groovy-swt</description>
- <url>http://groovy.codehaus.org/</url>
- <issueTrackingUrl>http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242&amp;report=roadmap</issueTrackingUrl>
- <siteAddress>groovy.codehaus.org</siteAddress>
- <siteDirectory>/www/groovy.codehaus.org</siteDirectory>
- <repository>
- <connection>scm:cvs:pserver:anonymous@cvs.codehaus.org:/scm/cvspublic:groovy/modules/groovy-swt</connection>
- <developerConnection>scm:cvs:ext:${maven.username}@cvs.codehaus.org:/scm/cvspublic:groovy/modules/groovy-swt</developerConnection>
- <url>http://cvs.groovy.codehaus.org/viewcvs.cgi/groovy/modules/groovy-swt</url>
- </repository>
- <versions/>
- <branches/>
- <mailingLists/>
- <developers>
- <developer>
- <name>Christiaan ten Klooster</name>
- <id>ckl</id>
- <email>ckl@dacelo.nl</email>
- <organization>Dacelo WebDevelopment</organization>
- <roles>
- <role>Developer</role>
- <role>Founder</role>
- </roles>
- </developer>
- </developers>
- <dependencies>
- <dependency>
- <groupId>asm</groupId>
- <artifactId>asm</artifactId>
- <version>1.4.3</version>
- <type>jar</type>
- <url>http://asm.objectweb.org/</url>
- <properties/>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.0.3</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>groovy</groupId>
- <artifactId>groovy</artifactId>
- <version>1.0-beta-6</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>swt</groupId>
- <artifactId>swt-${platform}</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>swt</groupId>
- <artifactId>jface</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>swt</groupId>
- <artifactId>forms</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>swt</groupId>
- <artifactId>runtime</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>swt</groupId>
- <artifactId>osgi</artifactId>
- <version>3.0</version>
- <type>jar</type>
- <properties/>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <type>jar</type>
- <properties/>
- </dependency>
- </dependencies>
- <build>
- <nagEmailAddress>groovy-scm@lists.codehaus.org</nagEmailAddress>
- <sourceDirectory>src/main</sourceDirectory>
- <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
- <unitTest>
- <includes>
- <include>**/*Test.*</include>
- <include>**/*Bug.*</include>
- </includes>
- <resources>
- <resource>
- <directory>src/test</directory>
- <includes>
- <include>**/*.properties</include>
- <include>**/*.xml</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </resources>
- </unitTest>
- <resources>
- <resource>
- <directory>src/main</directory>
- <includes>
- <include>**/*.properties</include>
- <include>**/*.xml</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </resources>
- </build>
- <reports>
- <report>maven-license-plugin</report>
- <report>maven-checkstyle-plugin</report>
- <report>maven-pmd-plugin</report>
- <report>maven-jdepend-plugin</report>
- <report>maven-changelog-plugin</report>
- <report>maven-file-activity-plugin</report>
- <report>maven-developer-activity-plugin</report>
- <report>maven-jxr-plugin</report>
- <report>maven-javadoc-plugin</report>
- <report>maven-junit-report-plugin</report>
- <report>maven-faq-plugin</report>
- <report>maven-clover-plugin</report>
- <report>maven-changes-plugin</report>
- </reports>
- <properties/>
-</project>
View
2 groovy/modules/groovy-swt/settings.props
@@ -1,2 +0,0 @@
-#Fri Feb 20 19:43:20 CET 2004
-var1=true
View
36 groovy/modules/groovy-swt/src/examples/groovy/jface/ApplicationWindowDemo.groovy
@@ -1,36 +0,0 @@
-package groovy.jface.examples
-
-import groovy.jface.JFaceBuilder
-
-class ApplicationWindowDemo {
- property mainapp
-
- void run() {
- swt = new JFaceBuilder()
-
- mainapp = swt.applicationWindow() {
-
- menuManager( text:"File" ) {
- action ( text:"Very Nice", closure:{ println "Very Nice !!!" } )
- separator()
- action ( text:"Check me", checked:true, closure:{ println "I've been checked" } )
- }
-
- menuManager( text:"Edit" ) {
- action ( text:"Say Hi Statusbar", closure:{ mainapp.setStatus('Hello ...') } )
- }
-
- fillLayout ( type:"vertical" )
-
- label( text:"A big red label", background:[204, 0, 0] )
- label( text:"I can barelly read this", foreground:[0,200,0] )
- label( text:"It sure looks like the dutch flag", foreground:[0,0,150], background:[0, 0, 153] )
-
- }
-
- mainapp.MenuBarManager.updateAll( true )
- mainapp.getShell().layout()
- mainapp.open()
-
- }
-}
View
39 groovy/modules/groovy-swt/src/examples/groovy/jface/PreferencesDemo.groovy
@@ -1,39 +0,0 @@
-package groovy.jface.examples
-
-import groovy.jface.JFaceBuilder
-
-class PreferencesDemo {
- property pd
-
- void run() {
- jface = new JFaceBuilder()
- mainapp = jface.applicationWindow() {
-
- pd = preferenceDialog() {
-
- preferencePage( title:"General settings", filename:"settings.props" ) {
- booleanFieldEditor (propertyName:"var1", title:"It's boolean" )
- colorFieldEditor( propertyName:"var2", title:"MainColor" )
- directoryFieldEditor(propertyName:"var3", title:"Directory" )
- fileFieldEditor( propertyName:"var4", title:"File" )
- fontFieldEditor( propertyName:"var5", title:"Font" )
- integerFieldEditor( propertyName:"var6", title:"Integer" )
- stringFieldEditor( propertyName:"var7", title:"String" )
- }
-
- preferencePage( title:"Personal settings", filename:"settings.props" ) {
- booleanFieldEditor( propertyName:"var8", title:"It's boolean" )
- colorFieldEditor( propertyName:"var2", title:"MainColor" )
- directoryFieldEditor( propertyName:"var9", title:"Directory" )
- fileFieldEditor( propertyName:"var10", title:"File" )
- fontFieldEditor( propertyName:"var11", title:"Font" )
- integerFieldEditor( propertyName:"var12", title:"Integer" )
- stringFieldEditor( propertyName:"var13", title:"String" )
- }
- }
- }
-
- pd.open()
- }
-
-}
View
18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoApplicationWindow.java
@@ -1,18 +0,0 @@
-package groovy.jface;
-
-import groovy.lang.GroovyObject;
-import groovy.swt.SwtTest;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoApplicationWindow extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoApplicationWindow demo = new RunDemoApplicationWindow();
- GroovyObject object = demo.compile("src/examples/groovy/jface/ApplicationWindowDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoPreferences.java
@@ -1,18 +0,0 @@
-package groovy.jface;
-
-import groovy.lang.GroovyObject;
-import groovy.swt.SwtTest;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoPreferences extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoPreferences demo = new RunDemoPreferences();
- GroovyObject object = demo.compile("src/examples/groovy/jface/PreferencesDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
18 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoWizard.java
@@ -1,18 +0,0 @@
-package groovy.jface;
-
-import groovy.lang.GroovyObject;
-import groovy.swt.SwtTest;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoWizard extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoWizard demo = new RunDemoWizard();
- GroovyObject object = demo.compile("src/examples/groovy/jface/WizardDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
87 groovy/modules/groovy-swt/src/examples/groovy/jface/WizardDemo.groovy
@@ -1,87 +0,0 @@
-package groovy.jface.examples
-
-import groovy.jface.JFaceBuilder
-
-class WizardDemo extends Script {
- property mainapp
- property wizardPage1
- property text
- property wizardDialog1
-
- run() {
- jface = new JFaceBuilder()
-
- mainapp = jface.applicationWindow() {
-
- wizardDialog1 = wizardDialog() {
-
- wizardPage1 = wizardPage( title:"Step 1", description:"Step 1", closure: { parent |
- jface.composite( parent ) {
- gridLayout( numColumns:2 )
- label( text:"Some input" )
-
- text = text()
- label( text:"Label 1" )
-
- button( text:"Set Message") {
- onEvent( type:"Selection" , closure: {
- wizardPage1.setMessage( text.getText() )
- })
- }
-
- label( text:"Label 2" )
- button( text:"Set Error Message" ) {
- onEvent( type:"Selection", closure: {
- wizardPage1.setErrorMessage('ErrorMessage: This step is not complete')
- })
- }
-
- label( text:"Label 3" )
- button ( text:"Set Page Complete" ) {
- onEvent ( type:"Selection", closure: {
- wizardPage1.setPageComplete(true)
- })
- }
- }
-
- })
-
- wizardPage2 = wizardPage( title:"Step 2", description:"Step 2", closure: { parent |
- jface.composite( parent ) {
- gridLayout( numColumns:"2" )
- label( text:"Label 3" )
- button( text:"Do nothing" )
- }
- })
-
- wizardPage3 = wizardPage( title:"Step 3", description:"Step 3", closure: { parent |
- jface.composite( parent ) {
- gridLayout( numColumns:"2" )
- label( text:"Label 4" )
- button( text:"Do nothing" )
- }
- })
-
- }
-
- }
-
- wizardPage1.setPageComplete(false)
- wizardDialog1.open()
-
- }
-
- void onPerformFinish() {
- println "onPerformFinish called ..."
- }
-
- void onPerformCancel() {
- println "onPerformCancel called ......"
- }
-
-}
-
-
-
-
-
View
31 groovy/modules/groovy-swt/src/examples/groovy/swt/AwtSwtDemo.groovy
@@ -1,31 +0,0 @@
-package groovy.swt.examples
-
-import groovy.swt.SwtBuilder
-import groovy.swing.SwingBuilder
-
-
-class AwtSwtDemo {
- property swt
-
- void run() {
- swt = new SwtBuilder()
- swing = new SwingBuilder()
-
- shell = swt.shell ( text:'The AwtSwt Demo' ) {
- fillLayout()
-
- swing.current = awtFrame()
- swing.tree()
- }
-
- shell.open()
-
- while(! shell.isDisposed()) {
- if (! shell.display.readAndDispatch()) {
- shell.display.sleep();
- }
- }
-
- shell.display.dispose()
- }
-}
View
96 groovy/modules/groovy-swt/src/examples/groovy/swt/BrowserDemo.groovy
@@ -1,96 +0,0 @@
-package groovy.swt.examples
-
-import groovy.swt.SwtBuilder
-
-class BrowserSwtDemo extends Script {
- property swt
- property shell
- property browser
- property location
- property status
- property progressBar
-
- void run() {
- swt = new SwtBuilder()
-
- shell = swt.shell( text:"The Browser Test", location:[100,100], size:[700,600] ) {
- gridLayout(numColumns:3)
-
- toolBar( style:"none" ) {
- gridData( horizontalSpan:3 )
-
- toolItem(style:"push", text:"Back") {
- onEvent(type:"Selection", closure:{ browser.back() })
- }
-
- toolItem(style:"push", text:"Forward") {
- onEvent(type:"Selection", closure:{ browser.forward() } )
- }
-
- toolItem(style:"push", text:"Stop") {
- onEvent(type:"Selection", closure:{ browser.stop() } )
- }
-
- toolItem(style:"push", text:"Refresh") {
- onEvent(type:"Selection", closure:{ browser.refresh() } )
- }
-
- toolItem(style:"push", text:"Go") {
- onEvent(type:"Selection", closure:{
- browser.setUrl( location.getText() )
- })
- }
- }
-
- label( style:"none", text:"Address" )
- location = text( style:"Border" ) {
- gridData( horizontalAlignment:"fill", horizontalSpan:2, grabExcessHorizontalSpace:true )
- }
-
-
- browser = browser( style:"border" ) {
- gridData( horizontalAlignment:"fill", verticalAlignment:"fill", horizontalSpan:3, grabExcessHorizontalSpace:true, grabExcessVerticalSpace:true)
-
- locationListener(type:"changed", closure: { event |
- location.setText( event.location )
- })
-
- progressListener(type:"changed", closure: { event |
- if (event.total != 0) {
- ratio = event.current * 100 / event.total
- progressBar.setSelection( Integer.parseInt("" + Math.round(Double.parseDouble("" + ratio))) )
- }
- })
-
- progressListener(type:"completed", closure: {
- progressBar.setSelection(0)
- })
-
- statusTextListener( closure: { event |
- status.setText(event.text)
- })
-
- }
-
- status = label( style:"none", text:"" ) {
- gridData( style:"fill_horizontal", horizontalSpan:2)
- }
-
- progressBar = progressBar () {
- gridData( horizontalAlignment:"end" )
- }
-
- }
-
- browser.setUrl( "http://feeds.codehaus.org/" )
- shell.open()
-
- while(! shell.isDisposed()) {
- if (! shell.display.readAndDispatch()) {
- shell.display.sleep();
- }
- }
-
- shell.display.dispose()
- }
-}
View
97 groovy/modules/groovy-swt/src/examples/groovy/swt/FormDemo.groovy
@@ -1,97 +0,0 @@
-package groovy.swt.examples
-
-import groovy.jface.JFaceBuilder
-
-class ApplicationDemo {
- property mainapp
-
- void run() {
- jface = new JFaceBuilder()
-
- mainapp = jface.applicationWindow( title:"The forms demo", size:[700,800], location:[0,0] ) {
- gridLayout ( numColumns:2 )
- form( text:"Hello, Eclipse Forms" ) {
- gridData( style:"fill_both" )
- tableWrapLayout()
-
- formSection( text:"section1", description:"description of section1", style:"description, twistie" ) {
- tableWrapData( style:"fill" )
-
- expansionListener( type:"expansionStateChanging", closure: { println "expansionStateChanging ... " + it } )
- expansionListener( type:"expansionStateChanged", closure: { println "expansionStateChanged ... " + it } )
-
- htmlText = "<form>"
- htmlText += "<li>list item</li>"
- htmlText += "<p>this html code with an url: http://groovy.codehaus.org</p>"
- htmlText += "<li style=\"text\" value=\"1.\">list item 2</li>"
- htmlText += "<li style=\"text\" value=\"2.\">list item 3</li>"
- htmlText += "</form>"
-
- formFormattedText( text:htmlText, parseTags:true, expandURLs:true )
-
- formButton ( text:"This is radiobutton1", style:"radio" )
- formButton ( text:"This is radiobutton2", style:"radio" )
-
- formButton ( text:"This is a ARROW button", style:"arrow" ) {
- onEvent(type:"Selection", closure:{ println "stop selecting me !!!" })
- }
- formButton ( text:"This is a PUSH button", style:"push" ) {
- onEvent(type:"Selection", closure:{ println "stop pushing me !!!" })
- }
- formButton ( text:"This is a TOGGLE button", style:"TOGGLE" ) {
- onEvent(type:"Selection", closure:{ println it.event })
- }
-
- }
-
- formSection( text:"section2", description:"description of section2", style:"description, twistie" ) {
- tableWrapData( style:"fill" )
- formLabel( text:"This is a label in section 2" )
- formExpandableComposite( text:"formExpandableComposite" )
- }
-
- formSection( text:"section3", description:"description of section3", style:"description, twistie" ) {
- tableWrapData( style:"fill" )
- formLabel( text:"Below me is a tree" )
- formTree()
- }
-
- formSeparator( style:"separator, horizontal" ) {
- tableWrapData( style:"fill" )
- }
-
- formButton( text:"This is a formButton" )
-
- formCompositeSeparator()
-
- formHyperlink( text:"this is a hyperlink" ) {
- hyperlinkListener( type:"hyperlinkUpdate", closure: { println "hyperlinkUpdate ... " + it } )
- hyperlinkListener( type:"linkEntered", closure: { println "linkEntered ... " + it } )
- hyperlinkListener( type:"linkExited", closure: { println "linkExited ... " + it } )
- hyperlinkListener( type:"linkActivated", closure: { println "linkActivated ... " + it } )
- }
-
- formLabel( text:"This is a formLabel, folowed by a formTable" )
- formTable() {
- tableWrapData( style:"fill" )
- }
-
-
-
- // NOT FULLY IMPLEMENTED YET:
- // formImageHyperlink( text:"formImageHyperlink" )
- // formPageBook( text:"formPageBook" )
-
- }
-
- form( text:"hello formScrolledForm" ) {
- gridData( style:"fill_both" )
- formLabel( text:"my parent is a scrolledForm" )
- formButton( text:"formButton" )
- }
- }
-
- mainapp.getShell().pack()
- mainapp.open()
- }
-}
View
36 groovy/modules/groovy-swt/src/examples/groovy/swt/RunAwtSwtDemo.java
@@ -1,36 +0,0 @@
-/*
- * Created on Apr 19, 2004
- *
- */
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href:ckl at dacelo.nl">Christiaan ten Klooster </a> $Id$
- */
-public class RunAwtSwtDemo {
- public static void main(String[] args) throws Exception {
- RunDemoBrowser demo = new RunDemoBrowser();
- GroovyObject object = demo.compile("src/examples/groovy/swt/AwtSwtDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-// public static void main(String[] args) {
-// Display display = new Display();
-// Shell shell = new Shell(display);
-// Composite locationComp = new Composite(shell, SWT.DEFAULT);
-// shell.setLayout(new FillLayout());
-//
-// java.awt.Frame locationFrame = SWT_AWT.new_Frame(locationComp);
-//
-// locationFrame.add(new JTree());
-//
-// shell.open();
-// while (!shell.isDisposed()) {
-// if (!display.readAndDispatch()) display.sleep();
-// }
-// display.dispose();
-//
-// }
-}
View
16 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoBrowser.java
@@ -1,16 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoBrowser extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoBrowser demo = new RunDemoBrowser();
- GroovyObject object = demo.compile("src/examples/groovy/swt/BrowserDemo.groovy");
- object.invokeMethod("run", null);
- }
-}
View
17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTableTree.java
@@ -1,17 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoTableTree extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoTableTree demo = new RunDemoTableTree();
- GroovyObject object = demo.compile("src/examples/groovy/swt/TableTreeDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTree.java
@@ -1,17 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunDemoTree extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunDemoTree demo = new RunDemoTree();
- GroovyObject object = demo.compile("src/examples/groovy/swt/TreeDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
17 groovy/modules/groovy-swt/src/examples/groovy/swt/RunFormDemo.java
@@ -1,17 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunFormDemo extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunFormDemo demo = new RunFormDemo();
- GroovyObject object = demo.compile("src/examples/groovy/swt/FormDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
18 groovy/modules/groovy-swt/src/examples/groovy/swt/RunSashFormDemo.java
@@ -1,18 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-import groovy.swt.SwtTest;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunSashFormDemo extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunSashFormDemo demo = new RunSashFormDemo();
- GroovyObject object = demo.compile("src/examples/groovy/swt/SashFormDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
20 groovy/modules/groovy-swt/src/examples/groovy/swt/RunTabDemo.java
@@ -1,20 +0,0 @@
-/*
- * Created on Apr 19, 2004
- *
- */
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-
-/**
- * @author <a href:ckl at dacelo.nl">Christiaan ten Klooster </a>
- * $Id$
- */
-public class RunTabDemo {
- public static void main(String[] args) throws Exception {
- RunDemoBrowser demo = new RunDemoBrowser();
- GroovyObject object = demo.compile("src/examples/groovy/swt/TabDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
18 groovy/modules/groovy-swt/src/examples/groovy/swt/RunTrayDemo.java
@@ -1,18 +0,0 @@
-package groovy.swt;
-
-import groovy.lang.GroovyObject;
-import groovy.swt.SwtTest;
-
-/**
- * @author <a href="mailto:ckl@dacelo.nl">Christiaan ten Klooster </a>
- * @version $Revision$
- */
-public class RunTrayDemo extends SwtTest {
-
- public static void main(String[] args) throws Exception {
- RunTrayDemo demo = new RunTrayDemo();
- GroovyObject object = demo.compile("src/examples/groovy/swt/TrayDemo.groovy");
- object.invokeMethod("run", null);
- }
-
-}
View
54 groovy/modules/groovy-swt/src/examples/groovy/swt/SashFormDemo.groovy
@@ -1,54 +0,0 @@
-package groovy.swt.examples
-
-import groovy.swt.SwtBuilder
-import org.eclipse.swt.layout.FormAttachment
-import org.eclipse.swt.graphics.Rectangle
-
-/*
-* java version: http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet109.html
-*/
-
-class SwtDemo {
- property shell
- property sashForm1
-
- void run() {
- builder = new SwtBuilder()
- shell = builder.shell ( text:'The SashForm Demo' ) {
- fillLayout()
-
- sashForm1 = sashForm( style:"horizontal" ) {
- fillLayout()
-
- composite( style:"none" ) {
- fillLayout()
- label( text:"Label in pane 1" )
- }
-
- composite( style:"none" ) {
- fillLayout()
- button( text:"Button in pane2", style:"push" )
- }
-
- composite( style:"none" ) {
- fillLayout()
- label( text:"Label in pane3" )
- }
- }
-
- sashForm1.weights = [30,40,30]
-
- }
-
-
- shell.open()
-
- while(! shell.isDisposed()) {
- if (! shell.display.readAndDispatch()) {
- shell.display.sleep();
- }
- }
-
- }
-}
-
View
52 groovy/modules/groovy-swt/src/examples/groovy/swt/TabDemo.groovy
@@ -1,52 +0,0 @@
-package groovy.swt.examples
-
-import groovy.swt.SwtBuilder
-
-
-class TabDemo {
- property swt
-
- void run() {
- swt = new SwtBuilder()
-
- shell = swt.shell ( text:'The Tab Demo', size:[500,400] ) {
- gridLayout()
-
- cTabFolder( style:"flat" ) {
- gridData( style:"fill_both" )
- cTabItem( style:"none", text:"Item1" ) {
- text( style:"border, multi", text:"Content for Item1" )
- }
- cTabItem( style:"none", text:"Item2" ) {
- text( style:"border, multi", text:"Content for Item2" )
- }
- cTabItem( style:"none", text:"Item3" ) {
- text( style:"border, multi", text:"Content for Item3" )
- }
- }
-
- tabFolder( style:"none" ) {
- gridData( style:"fill_both" )
- tabItem( style:"none", text:"Item4" ) {
- text( style:"border, multi", text:"Content for Item4" )
- }
- tabItem( style:"none", text:"Item5" ) {
- text( style:"border, multi", text:"Content for Item5" )
- }