continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r571513 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
Date Fri, 31 Aug 2007 16:36:04 GMT
Author: evenisse
Date: Fri Aug 31 09:36:01 2007
New Revision: 571513

URL: http://svn.apache.org/viewvc?rev=571513&view=rev
Log:
Fix default build definition test

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

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java?rev=571513&r1=571512&r2=571513&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
Fri Aug 31 09:36:01 2007
@@ -55,8 +55,6 @@
 
     private List<BuildDefinitionSummary> allBuildDefinitionSummaries = new ArrayList<BuildDefinitionSummary>();
 
-    private boolean containsDefaultBDForProject = false;
-
     //profileName
 
     public String summarizeForProject()
@@ -127,6 +125,8 @@
 
     private void fixDefaultBuildDefinitions()
     {
+        boolean containsDefaultBDForProject = false;
+
         for ( BuildDefinitionSummary bds : projectBuildDefinitionSummaries )
         {
             if ( bds.isIsDefault() )
@@ -135,9 +135,12 @@
             }
         }
 
-        for ( BuildDefinitionSummary bds : groupBuildDefinitionSummaries )
+        if ( containsDefaultBDForProject )
         {
-            bds.setIsDefault( false );
+            for ( BuildDefinitionSummary bds : groupBuildDefinitionSummaries )
+            {
+                bds.setIsDefault( false );
+            }
         }
     }
 



Mime
View raw message