mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
acd4e4c59c
commit
fee31978aa
|
@ -29,6 +29,7 @@ import org.apache.maven.archiva.model.ArchivaProjectModel;
|
||||||
import org.apache.maven.archiva.model.ProjectRepository;
|
import org.apache.maven.archiva.model.ProjectRepository;
|
||||||
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
|
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
@ -69,6 +70,11 @@ public class ShowArtifactAction
|
||||||
* The list of artifacts that depend on this versioned project.
|
* The list of artifacts that depend on this versioned project.
|
||||||
*/
|
*/
|
||||||
private List dependees;
|
private List dependees;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list of dependencies in tree format
|
||||||
|
*/
|
||||||
|
private List dependencyTree;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The reports associated with this versioned project.
|
* The reports associated with this versioned project.
|
||||||
|
@ -100,8 +106,6 @@ public class ShowArtifactAction
|
||||||
{
|
{
|
||||||
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
|
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();
|
this.dependencies = model.getDependencies();
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
@ -154,6 +158,8 @@ public class ShowArtifactAction
|
||||||
{
|
{
|
||||||
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
|
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
|
||||||
|
|
||||||
|
this.dependencyTree = new ArrayList();
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,4 +230,14 @@ public class ShowArtifactAction
|
||||||
{
|
{
|
||||||
return dependencies;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List getDependees()
|
||||||
|
{
|
||||||
|
return dependees;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List getDependencyTree()
|
||||||
|
{
|
||||||
|
return dependencyTree;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue