You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ja...@apache.org on 2009/01/08 22:47:44 UTC

svn commit: r732836 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report: ReportGenerator.groovy model/IterationModel.groovy resources/iteration-detail.vm

Author: jawarner
Date: Thu Jan  8 13:47:43 2009
New Revision: 732836

URL: http://svn.apache.org/viewvc?rev=732836&view=rev
Log:
Provide downloadable zip containing logs

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/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm

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?rev=732836&r1=732835&r2=732836&view=diff
==============================================================================
--- 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 Thu Jan  8 13:47:43 2009
@@ -239,6 +239,14 @@
                 renderIterationLog(it)
             }
             
+            //  Zip relevant logs for posting on iteration page for download
+            def zipName = targetDir + "/logs/" iterModel.getName() + ".zip"
+             
+            ant.zip(destfile: zipName) {
+                zipfileset( dir: workDir, includes: 'logs/' )
+                zipfileset( dir: workDir, includes: 'rilogs/')
+            }
+                
             log.info 'Rendering iteration detail'
             renderWithModel(iterModel, 'iteration-detail.vm', iterModel.href)
             renderWithModel(iterModel, 'iteration-frame.vm', iterModel.frameHref)

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy?rev=732836&r1=732835&r2=732836&view=diff
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy (original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/IterationModel.groovy Thu Jan  8 13:47:43 2009
@@ -62,6 +62,15 @@
         return name.toInteger()
     }
     
+    String getName() {
+        if (iterationIndex != 0) {
+            return iterationConfig.get('name').text()
+        } 
+        else {
+            return "custom"
+        }
+    }
+    
     String getDisplayName() {
         if (iterationIndex != 0) {
             return "${iterationIndex} :: " + iterationConfig.get('name').text()
@@ -127,6 +136,10 @@
         return "iteration-${iterationIndex}-frame.html"
     }
     
+    String getZip() {
+        return "logs/${name}.zip"
+    }
+    
     String getTitle() {
         return "Iteration: $displayName"
     }

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm?rev=732836&r1=732835&r2=732836&view=diff
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm (original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm Thu Jan  8 13:47:43 2009
@@ -84,6 +84,8 @@
         <tbody>
     </table>
     
+    <a href="$baseURI/${model.zip}">Download Logs</a>
+    
     <h3>Packages</h3>
     
     <table>