Permalink
Browse files

refactored the source tree to make things a little cleaner.

now have the more normal src/main and src/test trees


git-svn-id: http://svn.codehaus.org/groovy/trunk/groovy/groovy-core@34 a5544e8c-8a19-0410-ba12-f9af4593a198
  • Loading branch information...
jstrachan committed Sep 11, 2003
1 parent b6398d1 commit 408b29851d7bbe4d343340832297e4be7e0c5578
Showing with 18,949 additions and 7 deletions.
  1. +2 −2 .classpath
  2. +1 −1 maven.xml
  3. +4 −4 project.xml
  4. +9 −0 src/main/groovy/LogMixin.groovy
  5. +9 −0 src/main/groovy/StaticLogMixin.groovy
  6. +16 −0 src/main/groovy/Test.groovy
  7. +17 −0 src/main/groovy/lang/Bitwise.java
  8. +28 −0 src/main/log4j.properties
  9. +7 −0 src/main/org/codehaus/groovy/GroovyException.java
  10. +390 −0 src/main/org/codehaus/groovy/ant/Groovyc.java
  11. +62 −0 src/main/org/codehaus/groovy/ast/ASTNode.java
  12. +82 −0 src/main/org/codehaus/groovy/ast/AssertStatement.java
  13. +94 −0 src/main/org/codehaus/groovy/ast/BinaryExpression.java
  14. +69 −0 src/main/org/codehaus/groovy/ast/BooleanExpression.java
  15. +140 −0 src/main/org/codehaus/groovy/ast/ClassNode.java
  16. +83 −0 src/main/org/codehaus/groovy/ast/ConstantExpression.java
  17. +82 −0 src/main/org/codehaus/groovy/ast/ConstructorNode.java
  18. +76 −0 src/main/org/codehaus/groovy/ast/DoWhileLoop.java
  19. +61 −0 src/main/org/codehaus/groovy/ast/EmptyStatement.java
  20. +59 −0 src/main/org/codehaus/groovy/ast/Expression.java
  21. +70 −0 src/main/org/codehaus/groovy/ast/ExpressionStatement.java
  22. +77 −0 src/main/org/codehaus/groovy/ast/FieldExpression.java
  23. +117 −0 src/main/org/codehaus/groovy/ast/FieldNode.java
  24. +83 −0 src/main/org/codehaus/groovy/ast/ForLoop.java
  25. +62 −0 src/main/org/codehaus/groovy/ast/GroovyClassVisitor.java
  26. +79 −0 src/main/org/codehaus/groovy/ast/GroovyCodeVisitor.java
  27. +83 −0 src/main/org/codehaus/groovy/ast/IfElse.java
  28. +83 −0 src/main/org/codehaus/groovy/ast/ListExpression.java
  29. +76 −0 src/main/org/codehaus/groovy/ast/MapEntryExpression.java
  30. +84 −0 src/main/org/codehaus/groovy/ast/MapExpression.java
  31. +87 −0 src/main/org/codehaus/groovy/ast/MethodCallExpression.java
  32. +138 −0 src/main/org/codehaus/groovy/ast/MethodNode.java
  33. +88 −0 src/main/org/codehaus/groovy/ast/Parameter.java
  34. +80 −0 src/main/org/codehaus/groovy/ast/PropertyExpression.java
  35. +112 −0 src/main/org/codehaus/groovy/ast/PropertyNode.java
  36. +72 −0 src/main/org/codehaus/groovy/ast/ReturnStatement.java
  37. +56 −0 src/main/org/codehaus/groovy/ast/Statement.java
  38. +85 −0 src/main/org/codehaus/groovy/ast/StatementBlock.java
  39. +84 −0 src/main/org/codehaus/groovy/ast/TupleExpression.java
  40. +74 −0 src/main/org/codehaus/groovy/ast/VariableExpression.java
  41. +76 −0 src/main/org/codehaus/groovy/ast/WhileLoop.java
  42. +8 −0 src/main/org/codehaus/groovy/ast/package.html
  43. +789 −0 src/main/org/codehaus/groovy/classgen/ClassGenerator.java
  44. +64 −0 src/main/org/codehaus/groovy/classgen/ClassGeneratorException.java
  45. +74 −0 src/main/org/codehaus/groovy/classgen/GroovyClassLoader.java
  46. +110 −0 src/main/org/codehaus/groovy/classgen/MethodCaller.java
  47. +89 −0 src/main/org/codehaus/groovy/classgen/Variable.java
  48. +8 −0 src/main/org/codehaus/groovy/classgen/package.html
  49. +379 −0 src/main/org/codehaus/groovy/interpreter/Interpreter.java
  50. +64 −0 src/main/org/codehaus/groovy/interpreter/InterpreterException.java
  51. +88 −0 src/main/org/codehaus/groovy/interpreter/RuntimeContext.java
  52. +8 −0 src/main/org/codehaus/groovy/interpreter/package.html
  53. +65 −0 src/main/org/codehaus/groovy/lang/Closure.java
  54. +66 −0 src/main/org/codehaus/groovy/lang/ClosureException.java
  55. +99 −0 src/main/org/codehaus/groovy/lang/MapEntry.java
  56. +153 −0 src/main/org/codehaus/groovy/lang/Node.java
  57. +120 −0 src/main/org/codehaus/groovy/lang/Range.java
  58. +95 −0 src/main/org/codehaus/groovy/lang/Tuple.java
  59. +8 −0 src/main/org/codehaus/groovy/lang/package.html
  60. +8 −0 src/main/org/codehaus/groovy/package.html
  61. +114 −0 src/main/org/codehaus/groovy/runtime/ClassExtender.java
  62. +359 −0 src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
  63. +247 −0 src/main/org/codehaus/groovy/runtime/Invoker.java
  64. +64 −0 src/main/org/codehaus/groovy/runtime/InvokerException.java
  65. +146 −0 src/main/org/codehaus/groovy/runtime/InvokerHelper.java
  66. +62 −0 src/main/org/codehaus/groovy/runtime/InvokerInvocationException.java
  67. +478 −0 src/main/org/codehaus/groovy/runtime/MetaClass.java
  68. +100 −0 src/main/org/codehaus/groovy/runtime/MetaClassRegistry.java
  69. +23 −0 src/main/org/codehaus/groovy/runtime/MethodClosure.java
  70. +68 −0 src/main/org/codehaus/groovy/runtime/MethodHelper.java
  71. +57 −0 src/main/org/codehaus/groovy/runtime/TextExpression.java
  72. +8 −0 src/main/org/codehaus/groovy/runtime/package.html
  73. +75 −0 src/main/org/codehaus/groovy/syntax/AbstractTokenStream.java
  74. +19 −0 src/main/org/codehaus/groovy/syntax/LookAheadExhaustionException.java
  75. +15 −0 src/main/org/codehaus/groovy/syntax/SemanticException.java
  76. +61 −0 src/main/org/codehaus/groovy/syntax/SyntaxException.java
  77. +1,200 −0 src/main/org/codehaus/groovy/syntax/Token.java
  78. +26 −0 src/main/org/codehaus/groovy/syntax/TokenMismatchException.java
  79. +99 −0 src/main/org/codehaus/groovy/syntax/TokenStream.java
  80. +75 −0 src/main/org/codehaus/groovy/syntax/lexer/AbstractCharStream.java
  81. +115 −0 src/main/org/codehaus/groovy/syntax/lexer/CharStream.java
  82. +39 −0 src/main/org/codehaus/groovy/syntax/lexer/InputStreamCharStream.java
  83. +812 −0 src/main/org/codehaus/groovy/syntax/lexer/Lexer.java
  84. +107 −0 src/main/org/codehaus/groovy/syntax/lexer/LexerException.java
  85. +29 −0 src/main/org/codehaus/groovy/syntax/lexer/LexerTokenStream.java
  86. +31 −0 src/main/org/codehaus/groovy/syntax/lexer/StringCharStream.java
  87. +29 −0 src/main/org/codehaus/groovy/syntax/lexer/UnexpectedCharacterException.java
  88. +12 −0 src/main/org/codehaus/groovy/syntax/lexer/UnterminatedStringLiteralException.java
  89. +8 −0 src/main/org/codehaus/groovy/syntax/lexer/package.html
  90. +8 −0 src/main/org/codehaus/groovy/syntax/package.html
  91. +568 −0 src/main/org/codehaus/groovy/syntax/parser/ASTBuilder.java
  92. +100 −0 src/main/org/codehaus/groovy/syntax/parser/CSTNode.java
  93. +1,048 −0 src/main/org/codehaus/groovy/syntax/parser/Parser.java
  94. +9 −0 src/main/org/codehaus/groovy/syntax/parser/ParserException.java
  95. +84 −0 src/main/org/codehaus/groovy/syntax/parser/SemanticVerificationResult.java
  96. +14 −0 src/main/org/codehaus/groovy/syntax/parser/SemanticVerifier.java
  97. +79 −0 src/main/org/codehaus/groovy/syntax/parser/UnexpectedTokenException.java
  98. +355 −0 src/main/org/codehaus/groovy/tools/Compiler.java
  99. +23 −0 src/main/org/codehaus/groovy/tools/CompilerClassLoader.java
  100. +9 −0 src/main/org/codehaus/groovy/tools/Grok.java
  101. +92 −0 src/test/org/codehaus/groovy/GroovyTestCase.java
  102. +66 −0 src/test/org/codehaus/groovy/classgen/ClassGeneratorTest.java
  103. +60 −0 src/test/org/codehaus/groovy/classgen/DummyTestDerivation.java
  104. +122 −0 src/test/org/codehaus/groovy/classgen/DumpClass.java
  105. +99 −0 src/test/org/codehaus/groovy/classgen/ForTest.java
  106. +119 −0 src/test/org/codehaus/groovy/classgen/IfElseTest.java
  107. +104 −0 src/test/org/codehaus/groovy/classgen/MethodTest.java
  108. +109 −0 src/test/org/codehaus/groovy/classgen/PropertyTest.java
  109. +162 −0 src/test/org/codehaus/groovy/classgen/TestSupport.java
  110. +133 −0 src/test/org/codehaus/groovy/classgen/TupleListTest.java
  111. +179 −0 src/test/org/codehaus/groovy/interpreter/BinaryExpressionTest.java
  112. +73 −0 src/test/org/codehaus/groovy/interpreter/CounterBean.java
  113. +80 −0 src/test/org/codehaus/groovy/interpreter/DummyBean.java
  114. +92 −0 src/test/org/codehaus/groovy/interpreter/ForLoopTest.java
  115. +100 −0 src/test/org/codehaus/groovy/interpreter/IfElseTest.java
  116. +148 −0 src/test/org/codehaus/groovy/interpreter/InterpreterTest.java
  117. +90 −0 src/test/org/codehaus/groovy/interpreter/RuntimeContextTest.java
  118. +97 −0 src/test/org/codehaus/groovy/interpreter/WhileLoopTest.java
  119. +125 −0 src/test/org/codehaus/groovy/lang/NodeTest.java
  120. +103 −0 src/test/org/codehaus/groovy/lang/RangeTest.java
  121. +75 −0 src/test/org/codehaus/groovy/lang/TupleTest.java
  122. +87 −0 src/test/org/codehaus/groovy/runtime/DummyBean.java
  123. +91 −0 src/test/org/codehaus/groovy/runtime/InvokeGroovyMethodTest.java
  124. +230 −0 src/test/org/codehaus/groovy/runtime/InvokeMethodTest.java
  125. +159 −0 src/test/org/codehaus/groovy/runtime/InvokerTest.java
  126. +114 −0 src/test/org/codehaus/groovy/runtime/PropertyTest.java
  127. +93 −0 src/test/org/codehaus/groovy/runtime/TupleListTest.java
  128. +244 −0 src/test/org/codehaus/groovy/syntax/AbstractTokenStreamTest.java
  129. +717 −0 src/test/org/codehaus/groovy/syntax/TokenTest.java
  130. +230 −0 src/test/org/codehaus/groovy/syntax/lexer/AbstractCharStreamTest.java
  131. +921 −0 src/test/org/codehaus/groovy/syntax/lexer/LexerTest.java
  132. +47 −0 src/test/org/codehaus/groovy/syntax/lexer/LexerTokenStreamTest.java
  133. +41 −0 src/test/org/codehaus/groovy/syntax/lexer/StringCharStreamTest.java
  134. +60 −0 src/test/org/codehaus/groovy/syntax/parser/CSTNodeTest.java
  135. +1,560 −0 src/test/org/codehaus/groovy/syntax/parser/ParserTest.java
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java/main">
<classpathentry kind="src" path="src/main">
</classpathentry>
<classpathentry kind="src" path="src/java/test">
<classpathentry kind="src" path="src/test">
</classpathentry>
<classpathentry kind="var" path="MAVEN_REPO/junit/jars/junit-3.8.1.jar">
</classpathentry>
@@ -36,7 +36,7 @@
<goal name="groovy:compile-tests"
description="Compiles the Groovy unit test cases">
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="test.classpath"/>
<groovyc destdir="${basedir}/target/test-classes" srcdir="${basedir}/src/java/test">
<groovyc destdir="${basedir}/target/test-classes" srcdir="${basedir}/src/test">
<classpath refid="test.classpath"/>
<include name="**/*.groovy"/>
<exclude name="**/notworking/*.groovy"/>
@@ -134,14 +134,14 @@
<build>
<nagEmailAddress>groovy-scm@lists.codehaus.org</nagEmailAddress>
<sourceDirectory>src/java/main</sourceDirectory>
<unitTestSourceDirectory>src/java/test</unitTestSourceDirectory>
<sourceDirectory>src/main</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<aspectSourceDirectory/>
<unitTest>
<resources>
<resource>
<directory>src/java/test</directory>
<directory>src/test</directory>
<includes>
<include>**/*.properties</include>
</includes>
@@ -157,7 +157,7 @@
<resources>
<resource>
<directory>src/java/main</directory>
<directory>src/main</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
@@ -0,0 +1,9 @@
package groovy;
import org.apache.commons.logging.LogFactory;
/** A simple mixin to add logging to a class using an instance variable */
class StaticLogMixin {
// lets make a logger available
static log = LogFactory.getLog(thisClass);
}
@@ -0,0 +1,9 @@
package groovy;
import org.apache.commons.logging.LogFactory;
/** A simple mixin to add logging to a class using a static member variable */
class StaticLogMixin {
// lets make a logger available
static log = LogFactory.getLog(thisClass);
}
@@ -0,0 +1,16 @@
package groovy;
import org.junit.TestCase;
class GroovyTest extends TestCase, StaticLogMixin {
// add a main method
static main(args) {
TestRunner.run(suite());
}
// define the static suite() method that JUnit expects
static suite() {
return TestSuite(thisClass);
}
}
@@ -0,0 +1,17 @@
package groovy.lang;
/** Support for bitwise operations.
*
* <p>
* Since the language itself does not support bitwise
* operations, this utility class provides them.
* </p>
*
* @author <a href="mailto:bob@werken.com">bob mcwhirter</a>
*
* @version $Id$
*/
public class Bitwise
{
}
@@ -0,0 +1,28 @@
log4j.rootCategory=INFO, stdout
# note that if you repeat stdout below you will get duplicate logging output
# general program output
#log4j.category.com=INFO
#log4j.category.org=WARN
# this is where we would switch on debug tracing in SystemTestReplicatedSoak if we wanted to
#log4j.category.systest=DEBUG
#
# Use these lines to turn on debugging
#
# to enable logging of which JMS destinations are used
#log4j.category.org.apache.commons.messenger.destination=INFO
#log4j.category.org.apache.commons.messenger.destination=WARN
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
#log4j.appender.stdout.layout.ConversionPattern=%m [%t] (%F:%L) - %n
#log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
#log4j.appender.stdout.layout.ConversionPattern=%5p %t [%c] [%t] (%F:%L) - %m%n
#log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n
log4j.appender.stdout.layout.ConversionPattern=%5p %m%n
@@ -0,0 +1,7 @@
package org.codehaus.groovy;
public class GroovyException
extends Exception
{
}
Oops, something went wrong.

0 comments on commit 408b298

Please sign in to comment.