geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r502854 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild: config/projects/Geronimo_CTS/report/ReportGenerator.groovy system/BuildContext.groovy system/util/AntBuilder.groovy
Date Sat, 03 Feb 2007 03:17:40 GMT
Author: jdillon
Date: Fri Feb  2 19:17:39 2007
New Revision: 502854

URL: http://svn.apache.org/viewvc?view=rev&rev=502854
Log:
Add custom ant builder to set emacs mode for us
Drop old testing muck

Added:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
  (with props)
Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/BuildContext.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy?view=diff&rev=502854&r1=502853&r2=502854
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
Fri Feb  2 19:17:39 2007
@@ -36,7 +36,7 @@
  */
 class ReportGenerator extends LogSupport
 {
-    AntBuilder ant = new AntBuilder()
+    AntBuilder ant = new gbuild.system.util.AntBuilder()
     
     List archives
     
@@ -151,76 +151,4 @@
             writer.close()
         }
     }
-    
-    def foo() {
-        def passing = new File('/Users/jason/Downloads/Client_compat12EntityCmpTest1.jtr')
-        
-        def failing = new File('/Users/jason/Downloads/MDBClient_test1.jtr')
-        
-        // 13, 20
-        def resultInput = new File('/Users/jason/Downloads/runtests-results-13')
-        
-        def ant = new AntBuilder()
-        
-        def scanner = ant.fileScanner {
-            fileset(dir: resultInput) {
-                include(name: '**/*.jtr')
-            }
-        }
-        
-        def testCases = []
-        scanner.each { file ->
-            def factory = { new TestResult(it) }.curry(file)
-            testCases << new TestCase(new LazyProxy(factory))
-        }
-        
-        println "Generating suite"
-        
-        def watch = new StopWatch()
-        watch.start()
-        
-        def testSuite = new TestSuite(testCases)
-        
-        watch.stop()
-        
-        println "Suite loaded in $watch"
-        
-        /*
-        testSuite.testCases.keySet().sort(Sorting.CASE_INSENSITIVE).each {
-            println it
-        }
-        */
-        
-        println "Summary"
-        
-        println testSuite.passCount
-        println testSuite.failureCount
-        println testSuite.duration
-        println testSuite.successRate
-        println testSuite.passed
-        
-        //
-        // TODO: Load all .jtr files, NOTE: Might not be able to load each .jtr
-        //       all at once, it might blow up the heap... so need to keep that in mind
-        //
-        //       May need to create a LazyTestResult, which onlys knows about the
-        //       file name, then when accessed it loads itself, proxy will use
-        //       soft ref to allow instance to be reclaimed
-        //
-        
-        //
-        // TODO: Organize by iteration, but also show package summary?  Forget about sections...
-        //
-        
-        //
-        // TODO: Include links to server logs and complete javatest logs (even though
-        //       we have each tests output in the report)
-        //
-        
-        /*
-        VelocityEngine velocity = new VelocityEngine()
-        VelocityContext context = new VelocityContext()
-        */
-    }
 }
-

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/BuildContext.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/BuildContext.groovy?view=diff&rev=502854&r1=502853&r2=502854
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/BuildContext.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/BuildContext.groovy
Fri Feb  2 19:17:39 2007
@@ -32,7 +32,7 @@
     
     Parameters params
     
-    AntBuilder ant = new AntBuilder()
+    AntBuilder ant = new gbuild.system.util.AntBuilder()
     
     def BuildContext(BuildHarness harness) {
         assert harness != null
@@ -44,5 +44,9 @@
         def p = ant.antProject
         p.removeBuildListener(p.buildListeners[0])
         p.addBuildListener(harness.script.ant.antProject.buildListeners[0])
+        
+        //
+        // TODO: Figure out why when this is done we get an extra copy of the last exception
+        //
     }
 }

Added: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy?view=auto&rev=502854
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
(added)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
Fri Feb  2 19:17:39 2007
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// $Id$
+//
+
+package gbuild.system.util
+
+/**
+ * Custom ant builder which will setup emacs mode
+ */
+class AntBuilder extends groovy.util.AntBuilder
+{
+    def AntBuilder() {
+        antProject.buildListeners[0].emacsMode = true
+        
+        //
+        // TODO: Should really install our own, which delegates to JCL
+        //
+    }
+}
+

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/util/AntBuilder.groovy
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message