All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.plugins.tasks.TasksReporterDescriptor Maven / Gradle / Ivy

Go to download

This plug-in scans the workspace files for open tasks and generates a trend report.

There is a newer version: 4.13
Show newest version
package hudson.plugins.tasks;

import hudson.maven.MavenReporter;
import hudson.plugins.tasks.util.PluginDescriptor;
import hudson.plugins.tasks.util.ReporterDescriptor;
import net.sf.json.JSONObject;

import org.kohsuke.stapler.StaplerRequest;

/**
 * Descriptor for the class {@link TasksReporter}. Used as a singleton. The
 * class is marked as public so that it can be accessed from views.
 *
 * @author Ulli Hafner
 */
public class TasksReporterDescriptor extends ReporterDescriptor {
    /**
     * Creates a new instance of TasksReporterDescriptor.
     *
     * @param pluginDescriptor
     *            the plug-in descriptor of the publisher
     */
    public TasksReporterDescriptor(final PluginDescriptor pluginDescriptor) {
        super(TasksReporter.class, pluginDescriptor);
    }

    /** {@inheritDoc} */
    @Override
    public String getConfigPage() {
        return getViewPage(TasksPublisher.class, "config.jelly");
    }

    /** {@inheritDoc} */
    @Override
    public MavenReporter newInstance(final StaplerRequest request, final JSONObject formData) throws FormException {
        return request.bindJSON(TasksReporter.class, formData);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy