continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r328972 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java
Date Thu, 27 Oct 2005 22:58:57 GMT
Author: evenisse
Date: Thu Oct 27 15:58:54 2005
New Revision: 328972

URL: http://svn.apache.org/viewcvs?rev=328972&view=rev
Log:
Fix FileNotFoundException when an error appears in scm commands

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java?rev=328972&r1=328971&r2=328972&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/configuration/DefaultConfigurationService.java
Thu Oct 27 15:58:54 2005
@@ -164,7 +164,14 @@
 
         try
         {
-            return FileUtils.fileRead( file.getAbsolutePath() );
+            if ( file.exists() )
+            {
+                return FileUtils.fileRead( file.getAbsolutePath() );
+            }
+            else
+            {
+                return "There are no output for this build.";
+            }
         }
         catch ( IOException e )
         {



Mime
View raw message