continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r358527 - in /maven/continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/ProjectViewAction.java resources/localization/Continuum.properties webapp/projectView.jsp
Date Thu, 22 Dec 2005 08:21:58 GMT
Author: evenisse
Date: Thu Dec 22 00:21:51 2005
New Revision: 358527

URL: http://svn.apache.org/viewcvs?rev=358527&view=rev
Log:
Add build definitions and developers

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java
    maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
    maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java?rev=358527&r1=358526&r2=358527&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectViewAction.java
Thu Dec 22 00:21:51 2005
@@ -21,6 +21,7 @@
 import org.apache.maven.continuum.model.project.Project;
 
 import com.opensymphony.xwork.ActionSupport;
+import com.opensymphony.webwork.ServletActionContext;
 
 /**
  * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
@@ -49,6 +50,14 @@
 
             return ERROR;
         }
+
+        ServletActionContext.getRequest().setAttribute( "buildDefinitions", project.getBuildDefinitions()
);
+
+        ServletActionContext.getRequest().setAttribute( "notifiers", project.getNotifiers()
);
+
+        ServletActionContext.getRequest().setAttribute( "dependencies", project.getDependencies()
);
+
+        ServletActionContext.getRequest().setAttribute( "developers", project.getDevelopers()
);
 
         return SUCCESS;
     }

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/resources/localization/Continuum.properties?rev=358527&r1=358526&r2=358527&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
Thu Dec 22 00:21:51 2005
@@ -144,7 +144,15 @@
 projectView.project.scmUrl = Scm Url
 projectView.project.group = Group
 projectView.buildDefinitions = Build Definitions
+projectView.buildDefinition.goals = Goals
+projectView.buildDefinition.arguments = Arguments
+projectView.buildDefinition.buildFile = Build File
+projectView.buildDefinition.profile = Profile
+projectView.buildDefinition.schedule = Schedule
+projectView.buildDefinition.from = From
 projectView.notifiers = Notifiers
 projectView.dependencies = Dependencies
 projectView.usedBy= Used By
 projectView.developers = Developers
+projectView.developer.name = Name
+projectView.developer.email = Email

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp?rev=358527&r1=358526&r2=358527&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/projectView.jsp Thu Dec 22 00:21:51
2005
@@ -31,12 +31,44 @@
         </div>
 
         <h3><ww:text name="projectView.buildDefinitions"/></h3>
+        <ec:table items="buildDefinitions"
+                  var="buildDefinition"
+                  showExports="false"
+                  showPagination="false"
+                  showStatusBar="false"
+                  filterable="false">
+          <ec:row highlightRow="true">
+            <ec:column property="goals" title="projectView.buildDefinition.goals"/>
+            <ec:column property="arguments" title="projectView.buildDefinition.arguments"/>
+            <ec:column property="buildFile" title="projectView.buildDefinition.buildFile"/>
+            <ec:column property="profile" title="projectView.buildDefinition.profile"/>
+            <ec:column property="schedule" title="schedule">
+                ${pageScope.buildDefinition.schedule.name}
+            </ec:column>
+            <ec:column property="from" title="projectView.buildDefinition.from">
+                PROJECT
+            </ec:column>
+            <ec:column property="actions" title="&nbsp;">
+                Edit&nbsp;Delete
+            </ec:column>
+          </ec:row>
+        </ec:table>
 
         <h3><ww:text name="projectView.notifiers"/></h3>
 
         <h3><ww:text name="projectView.dependencies"/></h3>
 
         <h3><ww:text name="projectView.developers"/></h3>
+        <ec:table items="developers"
+                  showExports="false"
+                  showPagination="false"
+                  showStatusBar="false"
+                  filterable="false">
+          <ec:row highlightRow="true">
+            <ec:column property="name" title="projectView.developer.name"/>
+            <ec:column property="email" title="projectView.developer.email"/>
+          </ec:row>
+        </ec:table>
 
       </div>
     </body>



Mime
View raw message