
hudson.maven.reporters.ReportAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legacy-maven-plugin Show documentation
Show all versions of legacy-maven-plugin Show documentation
This plug-in provides deep integration of Hudson and Maven. This functionality used to be part of the Hudson core.
Now it is a plug-in that is installed by default, but can be disabled.
The newest version!
/*******************************************************************************
*
* Copyright (c) 2004-2009 Oracle Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*
* Kohsuke Kawaguchi
*
*
*******************************************************************************/
package hudson.maven.reporters;
import hudson.model.Action;
import org.apache.maven.reporting.MavenReport;
import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;
/**
* {@link Action} to display links to the generated {@link MavenReport Maven reports}.
* @author Kohsuke Kawaguchi
*/
public final class ReportAction implements Action, Serializable {
private final List entries = new ArrayList();
public static final class Entry {
/**
* Relative path to the top of the report withtin the project reporting directory.
*/
public final String path;
public final String title;
public Entry(String path, String title) {
this.path = path;
this.title = title;
}
}
public ReportAction() {
}
protected void add(Entry e) {
entries.add(e);
}
public String getIconFileName() {
// TODO
return "n/a.png";
}
public String getDisplayName() {
return Messages.ReportAction_DisplayName();
}
public String getUrlName() {
return "mavenReports";
}
private static final long serialVersionUID = 1L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy