continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r365430 - in /maven/continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/BuildResultAction.java resources/localization/Continuum.properties webapp/buildResult.jsp
Date Mon, 02 Jan 2006 20:53:08 GMT
Author: evenisse
Date: Mon Jan  2 12:53:03 2006
New Revision: 365430

URL: http://svn.apache.org/viewcvs?rev=365430&view=rev
Log: (empty)

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
    maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java?rev=365430&r1=365429&r2=365430&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Mon Jan  2 12:53:03 2006
@@ -45,7 +45,7 @@
     {
         try
         {
-            buildResult = continuum.getBuildResultByBuildNumber( projectId, buildId );
+            buildResult = continuum.getBuildResult( buildId );
         }
         catch ( ContinuumException e )
         {

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties?rev=365430&r1=365429&r2=365430&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
Mon Jan  2 12:53:03 2006
@@ -256,6 +256,14 @@
 // ----------------------------------------------------------------------
 buildResult.page.title = Continuum - Build result
 buildResult.section.title = Build result for {0}
+buildResult.startTime = Start Time
+buildResult.endTime = End Time
+buildResult.buildTrigger = Build Trigger
+buildResult.state = State
+buildResult.buildNumber = Build#
+buildResult.buildError = Build Error
+buildResult.buildOutput = Output
+buildResult.noOutput = No output.
 
 // ----------------------------------------------------------------------
 // Page: WorkingCopy

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp?rev=365430&r1=365429&r2=365430&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/buildResult.jsp Mon Jan  2 12:53:03
2006
@@ -21,6 +21,60 @@
                 <ww:param><ww:property value="projectName"/></ww:param>
             </ww:text>
         </h3>
+
+        <div class="axial">
+          <table border="1" cellspacing="2" cellpadding="3" width="100%">
+            <tr class="b">
+              <th><ww:text name="buildResult.startTime"/></th>
+              <td>TODO<ww:property value="buildResult.startTime"/></td>
+            </tr>
+            <tr class="b">
+              <th><ww:text name="buildResult.endTime"/></th>
+              <td>TODO<ww:property value="buildResult.endTime"/></td>
+            </tr>
+            <tr class="b">
+              <th><ww:text name="buildResult.buildTrigger"/></th>
+              <td>TODO<ww:property value="buildResult.trigger"/></td>
+            </tr>
+            <tr class="b">
+              <th><ww:text name="buildResult.state"/></th>
+              <td>TODO<ww:property value="buildResult.state"/></td>
+            </tr>
+            <tr class="b">
+              <th><ww:text name="buildResult.buildNumber"/></th>
+              <td>
+                <ww:if test="buildResult.buildNumber != 0">
+                    <ww:property value="buildResult.buildNumber"/>
+                </ww:if>
+                <ww:else>
+                    &nbsp;
+                </ww:else>
+              </td>
+            </tr>
+          </table>
+        </div>
+
+        <ww:if test="buildResult.state == 4">
+          <h4><ww:text name="buildResult.buildError"/></h4>
+          <p>
+            <div style="width:100%; height:500px; overflow:auto; border-style: solid;
border-width: 1px">
+            <code><pre><ww:property value="buildResult.error"/></pre></code>
+            </div>
+          </p>
+        </ww:if>
+        <ww:else>
+          <h4><ww:text name="buildResult.buildOutput"/></h4>
+          <p>
+            <ww:if test="buildResult.output == ''">
+                <ww:text name="buildResult.noOutput"/>
+            </ww:if>
+            <ww:else>
+              <div style="width:100%; height:500px; overflow:auto; border-style: solid;
border-width: 1px">
+                <code><pre>buildResult.output</pre></code>
+              </div>
+            </ww:else>
+          </p>
+        </ww:else>
       </div>
     </body>
   </ww:i18n>



Mime
View raw message