continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r574073 - in /maven/continuum/trunk: continuum-core/src/main/java/org/apache/maven/continuum/core/action/ continuum-model/src/main/mdo/ continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ continuum-webapp/src/main/java/org...
Date Sun, 09 Sep 2007 20:43:54 GMT
Author: olamy
Date: Sun Sep  9 13:43:53 2007
New Revision: 574073

URL: http://svn.apache.org/viewvc?rev=574073&view=rev
Log:
[CONTINUUM-1427] Ability to choose the build definition for 'Build all projects' and 'Build
Project(s)'


Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
    maven/continuum/trunk/continuum-model/src/main/mdo/continuum.xml
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildDefinitionAction.java
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectsListAction.java
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/component/BuildDefinitionSummaryAction.java
    maven/continuum/trunk/continuum-webapp/src/main/mdo/view-models.mdo
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildDefinitionEdit.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupSummary.jsp

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/AbstractBuildDefinitionContinuumAction.java
Sun Sep  9 13:43:53 2007
@@ -180,6 +180,8 @@
 
                 storedDefinition.setProfile( buildDefinition.getProfile() );
 
+                storedDefinition.setDescription( buildDefinition.getDescription() );
+                
                 store.storeBuildDefinition( storedDefinition );
 
                 return storedDefinition;

Modified: maven/continuum/trunk/continuum-model/src/main/mdo/continuum.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-model/src/main/mdo/continuum.xml?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-model/src/main/mdo/continuum.xml (original)
+++ maven/continuum/trunk/continuum-model/src/main/mdo/continuum.xml Sun Sep  9 13:43:53 2007
@@ -959,6 +959,18 @@
           </description>
         </field>
         <field>
+          <name>description</name>
+          <version>1.1.0+</version>
+          <type>String</type>
+          <description>description of the buid defintion</description>
+        </field>
+        <!--field jpox.column="executor_type">
+          <name>type</name>
+          <version>1.1.0+</version>
+          <type>String</type>
+          <description>type of the buid defintion</description>          
+        </field-->
+        <field>
           <name>schedule</name>
           <version>1.0.9+</version>
           <association xml.reference="true" stash.part="true" jpox.dependent="false">

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=574073&r1=574072&r2=574073&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
Sun Sep  9 13:43:53 2007
@@ -76,6 +76,8 @@
     private String projectGroupName = "";
 
     private int profileId;
+    
+    private String description;
 
     public void prepare()
         throws Exception
@@ -155,6 +157,7 @@
                 {
                     profileId = profile.getId();
                 }
+                description = buildDefinition.getDescription();
             }
             else
             {
@@ -383,6 +386,7 @@
                 buildDefinition.setProfile( profile );
             }
         }
+        buildDefinition.setDescription( description );
         return buildDefinition;
     }
 
@@ -552,5 +556,15 @@
     public void setProfileId( int profileId )
     {
         this.profileId = profileId;
+    }
+
+    public String getDescription()
+    {
+        return description;
+    }
+
+    public void setDescription( String description )
+    {
+        this.description = description;
     }
 }

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java
Sun Sep  9 13:43:53 2007
@@ -20,12 +20,15 @@
  */
 
 import org.apache.maven.continuum.ContinuumException;
+import org.apache.maven.continuum.model.project.BuildDefinition;
 import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectDependency;
 import org.apache.maven.continuum.model.project.ProjectGroup;
 import org.apache.maven.continuum.project.ContinuumProjectState;
 import org.apache.maven.continuum.web.bean.ProjectGroupUserBean;
 import org.apache.maven.continuum.web.exception.AuthorizationRequiredException;
+import org.apache.maven.continuum.web.model.BuildDefinitionSummary;
+import org.apache.maven.continuum.xmlrpc.project.ProjectGroupSummary;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
@@ -41,6 +44,7 @@
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -107,6 +111,10 @@
     private Collection groupProjects;
 
     private int releaseProjectId;
+    
+    private Map<String, Integer> buildDefinitions;
+    
+    private int buildDefinitionId;
 
     public String summary()
         throws ContinuumException
@@ -120,9 +128,25 @@
             addActionError( authzE.getMessage() );
             return REQUIRES_AUTHORIZATION;
         }
-
+        
         projectGroup = getProjectGroup( projectGroupId );
 
+        List<BuildDefinition> projectGroupBuildDefs = getContinuum().getBuildDefinitionsForProjectGroup(
projectGroupId );
+        
+        if (projectGroupBuildDefs != null)
+        {
+            this.buildDefinitions = new LinkedHashMap<String, Integer>(projectGroupBuildDefs.size());
+            for(BuildDefinition buildDefinition : projectGroupBuildDefs)
+            {
+                String key = StringUtils.isEmpty( buildDefinition.getDescription() ) ? buildDefinition.getGoals()
: buildDefinition.getDescription();
+                buildDefinitions.put( key, Integer.valueOf( buildDefinition.getId() ) );
+            }
+        }
+        else
+        {
+            this.buildDefinitions = Collections.EMPTY_MAP;
+        }
+        
         return SUCCESS;
     }
 
@@ -334,8 +358,14 @@
             return REQUIRES_AUTHORIZATION;
         }
 
-        getContinuum().buildProjectGroup( projectGroupId );
-
+        if ( this.getBuildDefinitionId() == -1 )
+        {
+            getContinuum().buildProjectGroup( projectGroupId );
+        }
+        else
+        {
+            getContinuum().buildProjectGroupWithBuildDefinition( projectGroupId, buildDefinitionId
);
+        }
         return SUCCESS;
     }
 
@@ -670,6 +700,26 @@
     {
 
         return getProjectGroup( projectGroupId ).getName();
+    }
+
+    public Map<String, Integer> getBuildDefinitions()
+    {
+        return buildDefinitions;
+    }
+
+    public void setBuildDefinitions( Map<String, Integer> buildDefinitions )
+    {
+        this.buildDefinitions = buildDefinitions;
+    }
+
+    public int getBuildDefinitionId()
+    {
+        return buildDefinitionId;
+    }
+
+    public void setBuildDefinitionId( int buildDefinitionId )
+    {
+        this.buildDefinitionId = buildDefinitionId;
     }
 
 }

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectsListAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectsListAction.java?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectsListAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectsListAction.java
Sun Sep  9 13:43:53 2007
@@ -55,6 +55,8 @@
     private int projectGroupId;
 
     private String methodToCall;
+    
+    private int buildDefinitionId;
 
     public String execute()
         throws Exception
@@ -125,7 +127,7 @@
 
         if ( selectedProjects != null && !selectedProjects.isEmpty() )
         {
-            ArrayList<Project> projectsList = new ArrayList();
+            ArrayList<Project> projectsList = new ArrayList<Project>();
             for ( Iterator i = selectedProjects.iterator(); i.hasNext(); )
             {
                 int projectId = Integer.parseInt( (String) i.next() );
@@ -133,6 +135,7 @@
                 projectsList.add( p );
             }
 
+            
             List sortedProjects;
             try
             {
@@ -145,47 +148,65 @@
 
             //TODO : Change this part because it's a duplicate of DefaultContinuum.buildProjectGroup*
             BuildDefinition groupDefaultBD = null;
-            try
-            {
-                groupDefaultBD = store.getDefaultBuildDefinitionForProjectGroup( projectGroupId
);
-            }
-            catch ( ContinuumObjectNotFoundException e )
+            if (getBuildDefinitionId() == -1 || getBuildDefinitionId() == 0)
             {
-                throw new ContinuumException( "Project Group (id=" + projectGroupId +
-                    " doens't have a default build definition, this should be impossible,
it should always have a default definition set." );
-            }
-            catch ( ContinuumStoreException e )
-            {
-                throw new ContinuumException( "Project Group (id=" + projectGroupId +
-                    " doens't have a default build definition, this should be impossible,
it should always have a default definition set." );
-            }
-
-            for ( Iterator i = sortedProjects.iterator(); i.hasNext(); )
-            {
-                int buildDefId = groupDefaultBD.getId();
-                Project project = (Project) i.next();
-                BuildDefinition projectDefaultBD = null;
                 try
                 {
-                    projectDefaultBD = store.getDefaultBuildDefinitionForProject( project.getId()
);
+                    groupDefaultBD = store.getDefaultBuildDefinitionForProjectGroup( projectGroupId
);
                 }
                 catch ( ContinuumObjectNotFoundException e )
                 {
-                    getLogger().debug( e.getMessage() );
+                    throw new ContinuumException( "Project Group (id=" + projectGroupId +
+                        " doens't have a default build definition, this should be impossible,
it should always have a default definition set." );
                 }
                 catch ( ContinuumStoreException e )
                 {
-                    getLogger().debug( e.getMessage() );
+                    throw new ContinuumException( "Project Group (id=" + projectGroupId +
+                        " doens't have a default build definition, this should be impossible,
it should always have a default definition set." );
                 }
+            }
+            for ( Iterator i = sortedProjects.iterator(); i.hasNext(); )
+            {
+                Project project = (Project) i.next();
+                if ( this.getBuildDefinitionId() == -1 || getBuildDefinitionId() == 0)
+                {
+                    int buildDefId = groupDefaultBD.getId();
 
-                if ( projectDefaultBD != null )
+                    BuildDefinition projectDefaultBD = null;
+                    if ( this.getBuildDefinitionId() == -1 )
+                    {
+                        try
+                        {
+                            projectDefaultBD = store.getDefaultBuildDefinitionForProject(
project.getId() );
+                        }
+                        catch ( ContinuumObjectNotFoundException e )
+                        {
+                            getLogger().debug( e.getMessage() );
+                        }
+                        catch ( ContinuumStoreException e )
+                        {
+                            getLogger().debug( e.getMessage() );
+                        }
+
+                        if ( projectDefaultBD != null )
+                        {
+                            buildDefId = projectDefaultBD.getId();
+                            getLogger()
+                                .debug(
+                                        "Project " + project.getId()
+                                            + " has own default build definition, will use
it instead of group's." );
+                        }
+                    }
+
+                    getContinuum().buildProject( project.getId(), buildDefId, ContinuumProjectState.TRIGGER_FORCED
);
+                }
+                else
                 {
-                    buildDefId = projectDefaultBD.getId();
-                    getLogger().debug( "Project " + project.getId() +
-                        " has own default build definition, will use it instead of group's."
);
+                    getContinuum().buildProject( project.getId(), this.getBuildDefinitionId(),
+                                                 ContinuumProjectState.TRIGGER_FORCED );
                 }
-                getContinuum().buildProject( project.getId(), buildDefId, ContinuumProjectState.TRIGGER_FORCED
);
             }
+            
         }
 
         return SUCCESS;
@@ -225,5 +246,15 @@
     public void setMethodToCall( String methodToCall )
     {
         this.methodToCall = methodToCall;
+    }
+
+    public int getBuildDefinitionId()
+    {
+        return buildDefinitionId;
+    }
+
+    public void setBuildDefinitionId( int buildDefinitionId )
+    {
+        this.buildDefinitionId = buildDefinitionId;
     }
 }

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=574073&r1=574072&r2=574073&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
Sun Sep  9 13:43:53 2007
@@ -182,7 +182,7 @@
         return summaryList;
     }
 
-    private BuildDefinitionSummary generateBuildDefinitionSummary( BuildDefinition bd )
+    protected BuildDefinitionSummary generateBuildDefinitionSummary( BuildDefinition bd )
     {
         BuildDefinitionSummary bds = new BuildDefinitionSummary();
 
@@ -199,6 +199,7 @@
             bds.setProfileName( bd.getProfile().getName() );
             bds.setProfileId( bd.getProfile().getId() );
         }
+        bds.setDescription( bd.getDescription() );
         return bds;
     }
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/mdo/view-models.mdo
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/mdo/view-models.mdo?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/mdo/view-models.mdo (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/mdo/view-models.mdo Sun Sep  9 13:43:53
2007
@@ -341,7 +341,13 @@
           <required>true</required>
           <description>id of the profile for build definition</description>
           <type>int</type>
-        </field>        
+        </field> 
+        <field>
+          <name>description</name>
+          <version>1.0.0</version>
+          <type>String</type>
+          <description>description of the buid defintion</description>
+        </field>               
       </fields>
     </class>
     <class>

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
Sun Sep  9 13:43:53 2007
@@ -156,6 +156,8 @@
 projectGroup.buildsStatut.errors = Errors
 projectGroup.buildsStatut.failures = Failed
 projectGroup.buildsStatut.success = Success
+projectGroup.buildDefinition.label = Choose a BuildDefinition
+projectGroup.addProject.label = Add New Project
 
 # ----------------------------------------------------------------------
 # Page: Add Project Group
@@ -321,6 +323,7 @@
 projectView.buildDefinition.from = From
 projectView.buildDefinition.default = Default
 projectView.buildDefinition.buildFresh = Build Fresh
+projectView.buildDefinition.description = Description
 projectView.notifiers = Notifiers
 projectView.notifier.type = Type
 projectView.notifier.recipient = Recipient
@@ -369,6 +372,7 @@
 buildDefinition.buildFresh.label = Build Fresh (Run always a clean checkout instead of an
SCM update)
 buildDefinition.defaultForProject.label = Is it default?
 buildDefinition.schedule.label = Schedule
+buildDefinition.description.label = Description
 buildDefinition.noname.save.error.message = There was an error saving the schedule, no schedule
name was supplied.
 buildDefinition.duplicatename.save.error.message = There was an error saving the schedule,
a schedule with the same name already exists.
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildDefinitionEdit.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildDefinitionEdit.jsp?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildDefinitionEdit.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/buildDefinitionEdit.jsp
Sun Sep  9 13:43:53 2007
@@ -75,6 +75,7 @@
                     <ww:select label="%{getText('buildDefinition.schedule.label')}" name="scheduleId"
list="schedules"/>
                     <ww:select label="%{getText('buildDefinition.profile.label')}" name="profileId"
list="profiles" listValue="name" 
                                listKey="id" headerKey="-1" headerValue=""/>
+                    <ww:textfield label="%{getText('buildDefinition.description.label')}"
name="description" />
                   </tbody>
                 </table>
                 <div class="functnbar3">

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionGroupSummaryComponent.jsp
Sun Sep  9 13:43:53 2007
@@ -58,6 +58,7 @@
       <ec:column property="from" title="projectView.buildDefinition.from"/>
       <ec:column property="isBuildFresh" title="projectView.buildDefinition.buildFresh"/>
       <ec:column property="isDefault" title="projectView.buildDefinition.default"/>
+      <ec:column property="description" title="projectView.buildDefinition.description"/>
       <ec:column property="buildAction" title="&nbsp;" width="1%">
         <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroupName}">
           <ww:url id="buildUrl" action="buildProject" namespace="/">
@@ -155,6 +156,7 @@
       <ec:column property="from" title="projectView.buildDefinition.from"/>
       <ec:column property="isBuildFresh" title="projectView.buildDefinition.buildFresh"/>
       <ec:column property="isDefault" title="projectView.buildDefinition.default"/>
+      <ec:column property="description" title="projectView.buildDefinition.description"/>
       <ec:column property="buildNowAction" title="&nbsp;" width="1%">
         <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroupName}">
           <ww:url id="buildProjectUrl" action="buildProject" namespace="/" includeParams="none">

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
Sun Sep  9 13:43:53 2007
@@ -44,6 +44,7 @@
 
   <form id="projectsForm" action="ProjectsList.action" method="post">
     <input type="hidden" name="methodToCall" value="" />
+    <input type="hidden" id="buildDefinitionId" name="buildDefinitionId" />
   <ec:table items="projects"
             var="project"
             showExports="false"
@@ -232,7 +233,10 @@
               <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}">
                 <input type="hidden" name="projectGroupId" value="${project.projectGroupId}"
/>
                 <input type="button" name="delete-projects" value="<ww:text name="projectGroup.deleteProjects"/>"
onclick="document.forms.projectsForm.methodToCall.value='remove';document.forms.projectsForm.submit();"
/>
-                <input type="button" name="build-projects" value="<ww:text name="projectGroup.buildProjects"/>"
onclick="document.forms.projectsForm.methodToCall.value='build';document.forms.projectsForm.submit();"
/>
+                <ww:select theme="simple" name="buildDefinitionId" id="buildDefinitions"
list="buildDefinitions" 
+                           listKey="value" listValue="key" headerKey="-1" headerValue="%{getText('projectGroup.buildDefinition.label')}"
+                           onchange="$('projectsForm').buildDefinitionId.value=$('buildDefinitions').value"
/>                
+                <input type="button" name="build-projects" value="<ww:text name="projectGroup.buildProjects"/>"
onclick="$('projectsForm').methodToCall.value='build';$('projectsForm').submit();" />
                 <input type="button" name="cancel-builds" value="<ww:text name="projectGroup.cancelBuilds"/>"
onclick="document.forms.projectsForm.action='cancelBuilds.action';document.forms.projectsForm.submit();"
/>
                 <a href="#" onclick="selectAll();return false;"><ww:text name="selectAll"/></a>
                 <a href="#" onclick="unselectAll();return false;"><ww:text name="unselectAll"/></a>

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupSummary.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupSummary.jsp?rev=574073&r1=574072&r2=574073&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupSummary.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/projectGroupSummary.jsp
Sun Sep  9 13:43:53 2007
@@ -94,33 +94,38 @@
         <table>
           <tr>
             <td>
-              <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroup.name}">
-                <form action="buildProjectGroup.action" method="post">
+              <table>
+                <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroup.name}">
+                  <form action="buildProjectGroup.action" method="post">
                     <input type="hidden" name="projectGroupId" value="<ww:property
value="projectGroupId"/>"/>
+                    <ww:select theme="simple" name="buildDefinitionId" list="buildDefinitions"

+                               listKey="value" listValue="key" headerKey="-1" headerValue="%{getText('projectGroup.buildDefinition.label')}"
/>                    
                     <input type="submit" name="build" value="<ww:text name="projectGroup.buildGroup"/>"/>
-                </form>
+                  </form>
                 </redback:ifAuthorized>
+              </table>
+            </td>
             <td>
-                <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
+              <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroup.name}">
                 <form action="editProjectGroup.action" method="post">
-                    <input type="hidden" name="projectGroupId" value="<ww:property
value="projectGroupId"/>"/>
-                    <input type="submit" name="edit" value="<ww:text name="edit"/>"/>
+                  <input type="hidden" name="projectGroupId" value="<ww:property value="projectGroupId"/>"/>
+                  <input type="submit" name="edit" value="<ww:text name="edit"/>"/>
                 </form>
-                </redback:ifAuthorized>
+              </redback:ifAuthorized>
             </td>
             <td>
               <redback:ifAuthorized permission="continuum-remove-group" resource="${projectGroup.name}">
                 <form action="removeProjectGroup.action" method="post">
-                    <input type="hidden" name="projectGroupId" value="<ww:property
value="projectGroupId"/>"/>
-                    <input type="submit" name="remove" value="<ww:text name="projectGroup.deleteGroup"/>"/>
+                  <input type="hidden" name="projectGroupId" value="<ww:property value="projectGroupId"/>"/>
+                  <input type="submit" name="remove" value="<ww:text name="projectGroup.deleteGroup"/>"/>
                 </form>
               </redback:ifAuthorized>
             </td>
             <td>
               <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroup.name}">
                 <form action="releaseProjectGroup.action" method="post">
-                    <input type="hidden" name="projectGroupId" value="<ww:property
value="projectGroupId"/>"/>
-                    <input type="submit" name="release" value="<ww:text name="release"/>"/>
+                  <input type="hidden" name="projectGroupId" value="<ww:property value="projectGroupId"/>"/>
+                  <input type="submit" name="release" value="<ww:text name="release"/>"/>
                 </form>
               </redback:ifAuthorized>
             </td>
@@ -138,7 +143,7 @@
                 <c:url var="addProjectUrl" value="/addProjectInput.action" />
 
                 <select id="projectTypes">
-                  <option value="">Add New Project</option>
+                  <option value=""><ww:text name="projectGroup.addProject.label"
/></option>
                   <option value="${addM2ProjectUrl}">Add M2 Project</option>
                   <option value="${addM1ProjectUrl}">Add M1 Project</option>
                   <option value="${addProjectUrl}">Add Ant Project</option>



Mime
View raw message