public class JSLintBuilder
extends hudson.tasks.Builder
Builder for JSLint. Takes parameters to determine filesets to
include/exclude and creates output in Checkstyle format.
When a build is performed, the
perform(AbstractBuild, Launcher, BuildListener) method will be
invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
JSLintBuilder.DescriptorImpl
Implementation of an extension point.
|
| Constructor and Description |
|---|
JSLintBuilder(String includePattern,
String excludePattern,
String logfile,
String arguments)
Fields in config.jelly must match the parameter names in the
"DataBoundConstructor".
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArguments() |
String |
getExcludePattern() |
String |
getIncludePattern() |
String |
getLogfile() |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Perform this JSLint operation.
|
all, getDescriptor, getRequiredMonitorService, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public JSLintBuilder(String includePattern, String excludePattern, String logfile, String arguments)
includePattern - files to include - apache ant filterexcludePattern - files to exclude - apache ant filterlogfile - xml location to log topublic final String getIncludePattern()
public final String getExcludePattern()
public final String getLogfile()
public final String getArguments()
public final boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerbuild - The buildlauncher - Launcherlistener - ListenerIOException - Can be thrown if can't read filesInterruptedException - Can be thrown if build interruptedCopyright © 2004-2013. All Rights Reserved.