org.hammurapi
Class QuickHammurapiTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.hammurapi.TaskBase
              extended byorg.hammurapi.QuickHammurapiTask

public class QuickHammurapiTask
extends TaskBase

Performs automatic code reviews. Quick mode - doesn't store anything to the database, package and repository level inspectors are not invoked.

If you copy content of Hammurapi lib directory to ant lib directory then you can invoke Hammurapi in the following way:
<taskdef name="quickurappi" classname="org.hammurapi.QuickHammurapiTask" />

<quickurappi>
<src dir="src"/>
<output dir="review"/>
</quickurappi>
or, if you didn't copy jar files to Ant lib directory, use this syntax:
<taskdef name="quickurappi" classname="org.hammurapi.QuickHammurapiTask">
<classpath>
<fileset dir="${hammurapi.home}/lib" includes="*.jar"/>
</classpath>
</taskdef>

<quickurappi>
<src dir="src"/>
<output dir="review"/>
</quickurappi>

Version:
$Revision: 1.10 $
Author:
Pavel Vlasov

Field Summary
 
Fields inherited from class org.hammurapi.TaskBase
classPath, database, embeddedInspectors, evictBadInspectors, failOnFirstException, force, forceOnWarnings, hadExceptions, inspectors, listenerEntries, outputs, reviewDescription, srcFiles, srcFileSets, suppressLogo, tabSize, title, violationFilters, waivers
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
QuickHammurapiTask()
           
 
Method Summary
 void execute()
           
protected static void loadEmbeddedInspectors(InspectorSet inspectorSet)
           
static void main(java.lang.String[] args)
          Use it for inspector debugging
 
Methods inherited from class org.hammurapi.TaskBase
addConfiguredListener, addConfiguredReviewAcceptor, configure, createClasspath, createConfig, createHistoryOutput, createInspector, createInspectors, createOutput, createRevisionMapper, createSrc, createWaivers, deleteFile, getDebugType, getDpmoThreshold, getEncoding, getReviewAcceptorEntries, getSeverityThreshold, getSigmaThreshold, isFailOnWarnings, isForce, isForceOnWarnings, populateOptions, printHelpAndExit, processArchive, processConfigs, setArchive, setAttributes, setBaselining, setClassPath, setDatabase, setDebugType, setDpmoThreshold, setEmbeddedInspectors, setEncoding, setEvictBadInspectors, setFailOnFirstException, setFailOnWarnings, setForce, setForceOnWarnings, setHadExceptions, setReviewDescription, setSeverityThreshold, setSigmaThreshold, setTabSize, setTitle, setUnpackDir, setWaiverStubs, writeWaiverStubs
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickHammurapiTask

public QuickHammurapiTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

main

public static void main(java.lang.String[] args)
Use it for inspector debugging

Parameters:
args -

loadEmbeddedInspectors

protected static void loadEmbeddedInspectors(InspectorSet inspectorSet)
                                      throws org.apache.tools.ant.BuildException,
                                             HammurapiException
Throws:
org.apache.tools.ant.BuildException
HammurapiException


Copyright © 2004 Hammurapi Group. All Rights Reserved.