public class JDependRecorder extends Recorder
| Modifier and Type | Class and Description |
|---|---|
static class |
JDependRecorder.DescriptorImpl
Descriptor for
JDependRecorder. |
Publisher.DescriptorExtensionListImplExtensionPoint.LegacyInstancesAreScopedToHudsonBuildStep.PublisherListBUILDERS, PUBLISHERS| Constructor and Description |
|---|
JDependRecorder(String configuredJDependFile) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
generateJDependReport(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
The protected method of generating a JDepend report to allow
extensions to override the perform step to add pre/post-stages
|
String |
getConfiguredJDependFile() |
JDependParser |
getConfiguredParser(AbstractBuild<?,?> build,
String configuredPath)
Parses a JDepend file that has been generated already
|
protected JDependParser |
getJDependParser(File jDependExistingFile) |
protected JDependParser |
getJDependParser(File jDependOutputFile,
String sourcePath)
Gets a location to output a JDepend file, the source to run JDepend
on, then returns a parsed version of the JDepend file
|
Action |
getProjectAction(AbstractProject<?,?> project) |
BuildStepMonitor |
getRequiredMonitorService() |
protected void |
log(String message)
Log output to the given logger, using the JDepend identifier
|
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
This runs a JDepend analysis job when the build is performed.
|
getDescriptorall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectActions, perform, prebuild@DataBoundConstructor public JDependRecorder(String configuredJDependFile)
protected void log(String message)
message - The message to be outputtedpublic JDependParser getConfiguredParser(AbstractBuild<?,?> build, String configuredPath)
protected JDependParser getJDependParser(File jDependOutputFile, String sourcePath) throws IOException, ParserConfigurationException, SAXException
jDependOutputFile - the temporary file that JDepend should
output tosourcePath - the path to the source that JDepend should analyzeIOExceptionParserConfigurationExceptionSAXExceptionprotected JDependParser getJDependParser(File jDependExistingFile) throws ParserConfigurationException, SAXException, IOException
protected boolean generateJDependReport(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
build - launcher - listener - public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
perform in interface BuildStepperform in class BuildStepCompatibilityLayerpublic Action getProjectAction(AbstractProject<?,?> project)
getProjectAction in interface BuildStepgetProjectAction in class BuildStepCompatibilityLayerpublic String getConfiguredJDependFile()
public BuildStepMonitor getRequiredMonitorService()
Copyright © 2009–2022. All rights reserved.