continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r443235 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Date Thu, 14 Sep 2006 05:09:17 GMT
Author: carlos
Date: Wed Sep 13 22:09:16 2006
New Revision: 443235

URL: http://svn.apache.org/viewvc?view=rev&rev=443235
Log:
[CONTINUUM-870] Prevent exception when build fails in scm update phase

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

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java?view=diff&rev=443235&r1=443234&r2=443235
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Wed Sep 13 22:09:16 2006
@@ -65,7 +65,10 @@
 
         File buildOutputFile = getContinuum().getConfiguration().getBuildOutputFile( getBuildId(),
getProjectId() );
 
-        buildOutput = FileUtils.fileRead( buildOutputFile );
+        if ( buildOutputFile.exists() )
+        {
+            buildOutput = FileUtils.fileRead( buildOutputFile );
+        }
 
         return SUCCESS;
     }



Mime
View raw message