From d29e5f02ff0b5b06c23468ea662409bcba5d726c Mon Sep 17 00:00:00 2001
From: "Maria Odea B. Ching"
Date: Tue, 29 May 2007 10:12:01 +0000
Subject: [PATCH] MRM-378 Applied patch submitted by Philip Dodds. Added
mailing lists and dependecies in ShowArtifactAction. Also updated the field
names used in the conditions in mailingLists.jspf, and added the
classifer in the showArtifactLink tag in artifactDependencies.jspf.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@542475 13f79535-47bb-0310-9956-ffa450edef68
---
.../web/action/ShowArtifactAction.java | 22 +++++++++++++++++--
.../jsp/include/artifactDependencies.jspf | 2 +-
.../WEB-INF/jsp/include/mailingLists.jspf | 20 ++++++++---------
3 files changed, 31 insertions(+), 13 deletions(-)
diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java
index 1c759087e..613a9870b 100644
--- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java
+++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java
@@ -26,10 +26,12 @@ import org.apache.maven.archiva.database.ArchivaDatabaseException;
import org.apache.maven.archiva.database.ObjectNotFoundException;
import org.apache.maven.archiva.database.browsing.RepositoryBrowsing;
import org.apache.maven.archiva.model.ArchivaProjectModel;
+import org.apache.maven.archiva.model.ProjectRepository;
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
import java.util.Collections;
import java.util.List;
+import java.util.Iterator;
/**
* Browse the repository.
@@ -73,6 +75,10 @@ public class ShowArtifactAction
*/
private List reports;
+ private List mailingLists;
+
+ private List dependencies;
+
/**
* Show the versioned project information tab.
*
@@ -96,7 +102,8 @@ public class ShowArtifactAction
// TODO: should this be the whole set of artifacts, and be more like the maven dependencies report?
// this.dependencies = VersionMerger.wrap( project.getModel().getDependencies() );
-
+ this.dependencies = model.getDependencies();
+
return SUCCESS;
}
@@ -107,7 +114,8 @@ public class ShowArtifactAction
throws ObjectNotFoundException, ArchivaDatabaseException
{
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
-
+ this.mailingLists = model.getMailingLists();
+
return SUCCESS;
}
@@ -206,4 +214,14 @@ public class ShowArtifactAction
{
return reports;
}
+
+ public List getMailingLists()
+ {
+ return mailingLists;
+ }
+
+ public List getDependencies()
+ {
+ return dependencies;
+ }
}
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf
index f1190db65..fb89f1b56 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf
@@ -31,7 +31,7 @@
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/mailingLists.jspf b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/mailingLists.jspf
index 238512911..69d30630c 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/mailingLists.jspf
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/mailingLists.jspf
@@ -31,22 +31,22 @@
--%>