hudson.plugins.pmd
Class PmdMavenResultAction

java.lang.Object
  extended by hudson.plugins.analysis.core.MavenResultAction<PmdResult>
      extended by hudson.plugins.pmd.PmdMavenResultAction
All Implemented Interfaces:
hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport, hudson.model.Action, hudson.model.ModelObject, hudson.plugins.analysis.core.ResultAction<PmdResult>, org.kohsuke.stapler.StaplerProxy

public class PmdMavenResultAction
extends hudson.plugins.analysis.core.MavenResultAction<PmdResult>

A PmdResultAction for native Maven jobs. This action additionally provides result aggregation for sub-modules and for the main project.

Author:
Ulli Hafner

Constructor Summary
PmdMavenResultAction(hudson.maven.MavenBuild owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, String defaultEncoding, PmdResult result)
          Creates a new instance of PmdMavenResultAction.
PmdMavenResultAction(hudson.maven.MavenModuleSetBuild owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, String defaultEncoding)
          Creates a new instance of PmdMavenResultAction.
 
Method Summary
 hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build, Map<hudson.maven.MavenModule,List<hudson.maven.MavenBuild>> moduleBuilds)
          
protected  PmdResult createResult(PmdResult existingResult, PmdResult additionalResult)
           
 Class<? extends hudson.plugins.analysis.core.MavenResultAction<PmdResult>> getIndividualActionType()
           
 hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)
          
 
Methods inherited from class hudson.plugins.analysis.core.MavenResultAction
aggregate, getBuild, getBuildHealth, getDefaultEncoding, getDisplayName, getHealthDescriptor, getIconFileName, getLog, getOwner, getResult, getTarget, getTooltip, getToolTipProvider, getUrlName, isSuccessful, setResult, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdMavenResultAction

public PmdMavenResultAction(hudson.maven.MavenModuleSetBuild owner,
                            hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                            String defaultEncoding)
Creates a new instance of PmdMavenResultAction. This instance will have no result set in the beginning. The result will be set successively after each of the modules are build.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
defaultEncoding - the default encoding to be used when reading and parsing files

PmdMavenResultAction

public PmdMavenResultAction(hudson.maven.MavenBuild owner,
                            hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                            String defaultEncoding,
                            PmdResult result)
Creates a new instance of PmdMavenResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
defaultEncoding - the default encoding to be used when reading and parsing files
result - the result in this build
Method Detail

createAggregatedAction

public hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build,
                                                                 Map<hudson.maven.MavenModule,List<hudson.maven.MavenBuild>> moduleBuilds)


getProjectAction

public hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)


getIndividualActionType

public Class<? extends hudson.plugins.analysis.core.MavenResultAction<PmdResult>> getIndividualActionType()
Specified by:
getIndividualActionType in interface hudson.maven.MavenAggregatedReport
Specified by:
getIndividualActionType in class hudson.plugins.analysis.core.MavenResultAction<PmdResult>

createResult

protected PmdResult createResult(PmdResult existingResult,
                                 PmdResult additionalResult)
Specified by:
createResult in class hudson.plugins.analysis.core.MavenResultAction<PmdResult>


Copyright © 2004-2012. All Rights Reserved.