hudson.plugins.tasks.util.ReporterDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tasks Show documentation
Show all versions of tasks Show documentation
This plug-in scans the workspace files for open tasks
and generates a trend report.
package hudson.plugins.tasks.util;
import hudson.maven.MavenReporter;
import hudson.maven.MavenReporterDescriptor;
/**
* A maven reporter descriptor that uses a publisher descriptor as delegate to
* obtain the relevant configuration data.
*
* @author Ulli Hafner
*/
public abstract class ReporterDescriptor extends MavenReporterDescriptor {
/** Descriptor of the publisher. */
private final PluginDescriptor publisherDescriptor;
/**
* Creates a new instance of ReporterDescriptor
.
*
* @param clazz class of the reporter
* @param pluginDescriptor the plug-in descriptor of the publisher
*/
public ReporterDescriptor(final Class extends MavenReporter> clazz, final PluginDescriptor pluginDescriptor) {
super(clazz);
publisherDescriptor = pluginDescriptor;
}
/** {@inheritDoc} */
@Override
public final String getDisplayName() {
return publisherDescriptor.getDisplayName();
}
/** {@inheritDoc} */
@Override
public final String getHelpFile() {
return publisherDescriptor.getPluginRoot() + "help-m2.html";
}
/**
* Gets the publisher descriptor.
*
* @return the publisher descriptor
*/
public final PluginDescriptor getPublisherDescriptor() {
return publisherDescriptor;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy