Permalink
Browse files

This commit was manufactured by cvs2svn to create tag

'GROOVY_1_0_BETA_4'.

git-svn-id: http://svn.codehaus.org/groovy/tags/GROOVY_1_0_BETA_4@933 a5544e8c-8a19-0410-ba12-f9af4593a198
  • Loading branch information...
codehaus-support committed Mar 12, 2004
1 parent 8a847fc commit 28a14fa33cac2242931dcf905bc409a6dec62b2f
Showing with 0 additions and 10,365 deletions.
  1. +0 −120 groovy/groovy-native/README
  2. +0 −15 groovy/groovy-native/examples/001-standalone-executable/README
  3. +0 −19 groovy/groovy-native/examples/001-standalone-executable/Simple.groovy
  4. +0 −6 groovy/groovy-native/examples/001-standalone-executable/build.sh
  5. +0 −16 groovy/groovy-native/examples/README
  6. +0 −59 groovy/groovy-native/libgroovy/README
  7. +0 −10 groovy/groovy-native/libgroovy/asm-src
  8. +0 −44 groovy/groovy-native/libgroovy/build.sh
  9. +0 −128 groovy/groovy-native/libgroovy/groovy-src
  10. +0 −82 groovy/groovy-native/libgroovy/patch.diff
  11. +0 −20 groovy/modules/groovy-swt/.classpath
  12. +0 −2 groovy/modules/groovy-swt/.cvsignore
  13. +0 −18 groovy/modules/groovy-swt/.project
  14. +0 −47 groovy/modules/groovy-swt/LICENSE.txt
  15. +0 −47 groovy/modules/groovy-swt/maven.xml
  16. +0 −46 groovy/modules/groovy-swt/project.properties
  17. +0 −177 groovy/modules/groovy-swt/project.xml
  18. +0 −2 groovy/modules/groovy-swt/settings.props
  19. +0 −36 groovy/modules/groovy-swt/src/examples/groovy/jface/ApplicationWindowDemo.groovy
  20. +0 −39 groovy/modules/groovy-swt/src/examples/groovy/jface/PreferencesDemo.groovy
  21. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoApplicationWindow.java
  22. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoPreferences.java
  23. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/jface/RunDemoWizard.java
  24. +0 −87 groovy/modules/groovy-swt/src/examples/groovy/jface/WizardDemo.groovy
  25. +0 −22 groovy/modules/groovy-swt/src/examples/groovy/swt/About.groovy
  26. +0 −96 groovy/modules/groovy-swt/src/examples/groovy/swt/BrowserDemo.groovy
  27. +0 −97 groovy/modules/groovy-swt/src/examples/groovy/swt/FormDemo.groovy
  28. +0 −71 groovy/modules/groovy-swt/src/examples/groovy/swt/GuiBuilderDemo.groovy
  29. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoBrowser.java
  30. +0 −14 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTableTree.java
  31. +0 −14 groovy/modules/groovy-swt/src/examples/groovy/swt/RunDemoTree.java
  32. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/swt/RunFormDemo.java
  33. +0 −15 groovy/modules/groovy-swt/src/examples/groovy/swt/RunGuiBuilderDemo.java
  34. +0 −43 groovy/modules/groovy-swt/src/examples/groovy/swt/TableTreeDemo.groovy
  35. +0 −49 groovy/modules/groovy-swt/src/examples/groovy/swt/TreeDemo.groovy
  36. +0 −94 groovy/modules/groovy-swt/src/main/groovy/jface/JFaceBuilder.java
  37. +0 −40 groovy/modules/groovy-swt/src/main/groovy/jface/factory/ActionImpl.java
  38. +0 −62 groovy/modules/groovy-swt/src/main/groovy/jface/factory/DoubleClickListenerFactory.java
  39. +0 −40 groovy/modules/groovy-swt/src/main/groovy/jface/factory/MenuManagerFactory.java
  40. +0 −37 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesDialogFactory.java
  41. +0 −52 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesFieldEditorFactory.java
  42. +0 −76 groovy/modules/groovy-swt/src/main/groovy/jface/factory/PreferencesPageFactory.java
  43. +0 −67 groovy/modules/groovy-swt/src/main/groovy/jface/factory/SelectionChangedListenerFactory.java
  44. +0 −72 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WindowFactory.java
  45. +0 −36 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WizardDialogFactory.java
  46. +0 −59 groovy/modules/groovy-swt/src/main/groovy/jface/factory/WizardPageFactory.java
  47. +0 −39 groovy/modules/groovy-swt/src/main/groovy/jface/impl/ApplicationWindowImpl.java
  48. +0 −30 groovy/modules/groovy-swt/src/main/groovy/jface/impl/PreferenceDialogImpl.java
  49. +0 −78 groovy/modules/groovy-swt/src/main/groovy/jface/impl/PreferencePageFieldEditorImpl.java
  50. +0 −50 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardDialogImpl.java
  51. +0 −60 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardImpl.java
  52. +0 −43 groovy/modules/groovy-swt/src/main/groovy/jface/impl/WizardPageImpl.java
  53. +0 −18 groovy/modules/groovy-swt/src/main/groovy/swt/ClosureSupport.java
  54. +0 −19 groovy/modules/groovy-swt/src/main/groovy/swt/InvalidChildException.java
  55. +0 −21 groovy/modules/groovy-swt/src/main/groovy/swt/InvalidParentException.java
  56. +0 −281 groovy/modules/groovy-swt/src/main/groovy/swt/SwtBuilder.java
  57. +0 −78 groovy/modules/groovy-swt/src/main/groovy/swt/SwtHelper.java
  58. +0 −115 groovy/modules/groovy-swt/src/main/groovy/swt/convertor/ColorConverter.java
  59. +0 −37 groovy/modules/groovy-swt/src/main/groovy/swt/convertor/PointConverter.java
  60. +0 −119 groovy/modules/groovy-swt/src/main/groovy/swt/factory/AbstractSwtFactory.java
  61. +0 −32 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ActionFactory.java
  62. +0 −153 groovy/modules/groovy-swt/src/main/groovy/swt/factory/FormFactory.java
  63. +0 −97 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ImageFactory.java
  64. +0 −95 groovy/modules/groovy-swt/src/main/groovy/swt/factory/LayoutDataFactory.java
  65. +0 −56 groovy/modules/groovy-swt/src/main/groovy/swt/factory/LayoutFactory.java
  66. +0 −103 groovy/modules/groovy-swt/src/main/groovy/swt/factory/ListenerFactory.java
  67. +0 −23 groovy/modules/groovy-swt/src/main/groovy/swt/factory/SwtFactory.java
  68. +0 −192 groovy/modules/groovy-swt/src/main/groovy/swt/factory/WidgetFactory.java
  69. +0 −130 groovy/modules/groovy-swt/src/main/groovy/swt/guibuilder/ApplicationGuiBuilder.java
  70. +0 −62 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ExpansionListenerImpl.java
  71. +0 −75 groovy/modules/groovy-swt/src/main/groovy/swt/impl/HyperLinkListenerImpl.java
  72. +0 −43 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ListenerImpl.java
  73. +0 −84 groovy/modules/groovy-swt/src/main/groovy/swt/impl/LocationListenerImpl.java
  74. +0 −91 groovy/modules/groovy-swt/src/main/groovy/swt/impl/ProgressListenerImpl.java
  75. +0 −56 groovy/modules/groovy-swt/src/main/groovy/swt/impl/StatusTextListenerImpl.java
  76. +0 −21 groovy/modules/groovy-swt/src/test/groovy/jface/JFaceBuilderTest.java
  77. +0 −53 groovy/modules/groovy-swt/src/test/groovy/jface/JFaceBuilderTest1.groovy
  78. 0 groovy/modules/groovy-swt/src/test/groovy/jface/test.properties
  79. +0 −20 groovy/modules/groovy-swt/src/test/groovy/swt/SwtBuilderTest.java
  80. +0 −94 groovy/modules/groovy-swt/src/test/groovy/swt/SwtBuilderTest1.groovy
  81. +0 −41 groovy/modules/groovy-swt/src/test/groovy/swt/SwtTest.java
  82. BIN groovy/modules/groovy-swt/src/test/groovy/swt/groovy-logo.png
  83. +0 −50 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/DynamicUIBuilder.java
  84. +0 −59 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/NamedObject.java
  85. +0 −14 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/NamedObjectUI.groovy
  86. +0 −36 groovy/modules/groovy-swt/src/test/groovy/swt/scrapbook/RunDynamicUIDemo.java
  87. +0 −170 groovy/modules/pages/src/main/groovy/modules/pages/GroovyPage.java
  88. +0 −344 groovy/modules/pages/src/main/groovy/modules/pages/GroovyPages.java
  89. +0 −171 groovy/modules/pages/src/main/groovy/modules/pages/GroovyRequest.java
  90. +0 −140 groovy/modules/pages/src/main/groovy/modules/pages/GroovySession.java
  91. +0 −172 groovy/modules/pages/src/main/groovy/modules/pages/GroovyWriter.java
  92. +0 −78 groovy/modules/pages/src/main/groovy/util/Proxy.java
  93. +0 −80 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Loader.java
  94. +0 −265 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Parse.java
  95. +0 −43 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Reverse.java
  96. +0 −140 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Scan.java
  97. +0 −58 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Strip.java
  98. +0 −20 groovy/modules/pages/src/main/org/codehaus/groovy/modules/pages/Tokens.java
  99. +0 −33 groovy/modules/pages/src/web/WEB-INF/web.xml
  100. +0 −45 groovy/modules/pages/src/web/default.htm
  101. +0 −85 groovy/modules/pages/src/web/jsp.gsp
  102. +0 −57 groovy/modules/pages/src/web/simple.groovy
  103. +0 −50 groovy/modules/pages/src/web/simple.gsp
  104. +0 −14 groovy/modules/pages/src/web/sql.gsp
  105. +0 −11 groovy/modules/pages/src/web/test1.groovy
  106. +0 −10 groovy/modules/pages/src/web/test2.groovy
  107. +0 −155 groovy/modules/pages/src/web/visible.gsp
  108. +0 −12 groovy/modules/process/.classpath
  109. +0 −17 groovy/modules/process/.project
  110. BIN groovy/modules/process/lib/concurrent.jar
  111. +0 −22 groovy/modules/process/src/conf/groovy-classworlds.conf
  112. +0 −22 groovy/modules/process/src/conf/groovyc-classworlds.conf
  113. +0 −22 groovy/modules/process/src/include/nativeprocess.h
  114. +0 −41 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/GridClosureProcess.java
  115. +0 −63 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/Groosh.java
  116. +0 −77 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/GrooshProcess.java
  117. +0 −37 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/LineClosureProcess.java
  118. +0 −55 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/ShellProcess.java
  119. +0 −120 groovy/modules/process/src/main/com/baulsupp/groovy/groosh/StreamClosureProcess.java
  120. +0 −14 groovy/modules/process/src/main/com/baulsupp/process/AppProcess.java
  121. +0 −7 groovy/modules/process/src/main/com/baulsupp/process/CharSequenceSource.java
  122. +0 −55 groovy/modules/process/src/main/com/baulsupp/process/DevNull.java
  123. +0 −56 groovy/modules/process/src/main/com/baulsupp/process/FileStreams.java
  124. +0 −58 groovy/modules/process/src/main/com/baulsupp/process/IOUtil.java
  125. +0 −109 groovy/modules/process/src/main/com/baulsupp/process/JavaProcess.java
  126. +0 −13 groovy/modules/process/src/main/com/baulsupp/process/ProcessFactory.java
  127. +0 −25 groovy/modules/process/src/main/com/baulsupp/process/Sink.java
  128. +0 −7 groovy/modules/process/src/main/com/baulsupp/process/Source.java
  129. +0 −70 groovy/modules/process/src/main/com/baulsupp/process/StandardStreams.java
  130. +0 −73 groovy/modules/process/src/main/com/baulsupp/process/StringStreams.java
  131. +0 −4 groovy/modules/process/src/test_scripts/basic_cat.groovy
  132. +0 −6 groovy/modules/process/src/test_scripts/blah.txt
  133. +0 −5 groovy/modules/process/src/test_scripts/cat_to_file.groovy
  134. +0 −5 groovy/modules/process/src/test_scripts/dict.groovy
  135. +0 −9 groovy/modules/process/src/test_scripts/dict_args.groovy
  136. +0 −13 groovy/modules/process/src/test_scripts/each_line.groovy
  137. +0 −19 groovy/modules/process/src/test_scripts/find_grid.groovy
  138. +0 −6 groovy/modules/process/src/test_scripts/stdin_cat.groovy
  139. +0 −6 groovy/modules/process/src/test_scripts/tostring.groovy
  140. +0 −26 groovy/modules/process/todo.txt
  141. +0 −346 groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/XMLRPCServer.java
  142. +0 −148 groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/XMLRPCServerProxy.java
  143. +0 −185 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/MinMLSocketServer.java
  144. +0 −314 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/http/MinMLHTTPServer.java
  145. +0 −415 groovy/modules/xmlrpc/src/main/uk/co/wilson/net/xmlrpc/XMLRPCMessageProcessor.java
  146. +0 −735 groovy/modules/xmlrpc/src/main/uk/co/wilson/xml/MinML.java
  147. +0 −11 groovy/modules/xmlrpc/src/main/uk/org/xml/sax/DocumentHandler.java
  148. +0 −5 groovy/modules/xmlrpc/src/main/uk/org/xml/sax/Parser.java
  149. +0 −172 groovy/modules/xmlrpc/src/test/groovy/net/xmlrpc/GroovyXmlrpcTest.groovy
View
@@ -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>
@@ -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>
@@ -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()
- }
-}
@@ -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
-
@@ -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>
-
@@ -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>
-
-
@@ -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
@@ -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
-
Oops, something went wrong.

0 comments on commit 28a14fa

Please sign in to comment.