From fee31978aa1896b1db9720088d8f88731e95a341 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 29 May 2007 19:24:26 +0000 Subject: [PATCH] Stub out missing parameters / variables needed by tabs in showArtifact.jsp git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@542629 13f79535-47bb-0310-9956-ffa450edef68 --- .../web/action/ShowArtifactAction.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 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 613a9870b..342c6b7e2 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 @@ -29,6 +29,7 @@ import org.apache.maven.archiva.model.ArchivaProjectModel; import org.apache.maven.archiva.model.ProjectRepository; import org.codehaus.plexus.xwork.action.PlexusActionSupport; +import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Iterator; @@ -69,6 +70,11 @@ public class ShowArtifactAction * The list of artifacts that depend on this versioned project. */ private List dependees; + + /** + * The list of dependencies in tree format + */ + private List dependencyTree; /** * The reports associated with this versioned project. @@ -100,8 +106,6 @@ public class ShowArtifactAction { this.model = repoBrowsing.selectVersion( groupId, artifactId, version ); - // 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; @@ -154,6 +158,8 @@ public class ShowArtifactAction { this.model = repoBrowsing.selectVersion( groupId, artifactId, version ); + this.dependencyTree = new ArrayList(); + return SUCCESS; } @@ -224,4 +230,14 @@ public class ShowArtifactAction { return dependencies; } + + public List getDependees() + { + return dependees; + } + + public List getDependencyTree() + { + return dependencyTree; + } } -- 2.39.5