continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1599873 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Date Wed, 04 Jun 2014 04:54:09 GMT
Author: brett
Date: Wed Jun  4 04:54:08 2014
New Revision: 1599873

URL: http://svn.apache.org/r1599873
Log:
[CONTINUUM-2718] download text during a distributed build

Distributed build has a different method of populating the build output,
which is shown in the main method that sets buildOutput. Reuse that for both
methods instead of re-reading the text file

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java?rev=1599873&r1=1599872&r2=1599873&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Wed Jun  4 04:54:08 2014
@@ -207,8 +207,7 @@ public class BuildResultAction
     public InputStream getBuildOutputInputStream()
         throws ConfigurationException, IOException
     {
-        String outputText = getBuildOutputText();
-        return outputText == null ? null : IOUtils.toInputStream( outputText );
+        return IOUtils.toInputStream( buildOutput );
     }
 
     private String getBuildOutputText()



Mime
View raw message