continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r572391 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Date Mon, 03 Sep 2007 16:59:00 GMT
Author: evenisse
Date: Mon Sep  3 09:58:59 2007
New Revision: 572391

URL: http://svn.apache.org/viewvc?rev=572391&view=rev
Log:
Add default value for build file from default group build definition

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

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java?rev=572391&r1=572390&r2=572391&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
Mon Sep  3 09:58:59 2007
@@ -169,6 +169,11 @@
                 else
                 {
                     checkAddGroupBuildDefinitionAuthorization( getProjectGroupName() );
+                    List bds = getContinuum().getBuildDefinitionsForProjectGroup( projectGroupId
);
+                    if ( bds != null && !bds.isEmpty() )
+                    {
+                        preDefinedBuildFile = ( (BuildDefinition) bds.get( 0 ) ).getBuildFile();
+                    }
                 }
 
                 if ( StringUtils.isEmpty( preDefinedBuildFile ) )



Mime
View raw message