Java Doc for HammurapiTask.java in  » Code-Analyzer » hammurapi-3.20.0.3 » org » hammurapi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » hammurapi 3.20.0.3 » org.hammurapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hammurapi.TaskBase
   org.hammurapi.HammurapiTask

HammurapiTask
public class HammurapiTask extends TaskBase (Code)
Performs automatic code reviews.
If you copy content of Hammurapi lib directory to ant lib directory then you can invoke Hammurapi in the following way:
 <taskdef name="hammurapi" classname="org.hammurapi.HammurapiTask" />

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

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

author:
   Pavel Vlasov
version:
   $Revision: 1.25 $

Inner Class :public class ViolationFilterVisitor

Field Summary
 booleanskipIntactPackages
    


Method Summary
public  voidaddConnection(ConnectionEntry connection)
     Defines database server to be used as repository.
public  voidaddServer(ServerEntry server)
     Database (Hypersonic) server to use as repository.
protected  voidconfigure(Options options, CommandLine line)
    
public  voidexecute()
    
 booleanisForceOnWaivers()
    
public static  voidmain(String[] args)
    
protected static  voidpopulateOptions(Options options)
    
protected  voidsetAttributes(Element config)
    
public  voidsetBaseLine(Date baseLine)
    
public  voidsetCalculateDependencies(boolean calculateDependencies)
     If set to 'true' Hammurapi stores dependency information to the database.
public  voidsetCleanup(boolean cleanup)
     Cleanup old reviews info after review.
public  voidsetForceOnWaivers(boolean forceOnWaivers)
     Force review of compilation units for which waivers are available.
public  voidsetHostId(String hostId)
     Host id to differentiate reports created on different machines.
public  voidsetSkipIntactPackages(boolean skipIntactPackages)
     Do not generate summary pages for packages and summary if no files were changed in package/summary.
public  voidsetStoreSource(boolean storeSource)
     If set to 'true' Hammurapi stores source code to the database.

Field Detail
skipIntactPackages
boolean skipIntactPackages(Code)





Method Detail
addConnection
public void addConnection(ConnectionEntry connection)(Code)
Defines database server to be used as repository. Mutually exclusive with server nested element and database attribute.



addServer
public void addServer(ServerEntry server)(Code)
Database (Hypersonic) server to use as repository.
Parameters:
  entry -



configure
protected void configure(Options options, CommandLine line)(Code)

Parameters:
  options -
Parameters:
  line -
Parameters:
  task -
Parameters:
  project -



execute
public void execute() throws BuildException(Code)



isForceOnWaivers
boolean isForceOnWaivers()(Code)



main
public static void main(String[] args)(Code)
Use it for inspector debugging
Parameters:
  args -



populateOptions
protected static void populateOptions(Options options)(Code)

Parameters:
  options -



setAttributes
protected void setAttributes(Element config)(Code)

Parameters:
  config -
throws:
  ParseException -



setBaseLine
public void setBaseLine(Date baseLine)(Code)
Date of baseline report
Parameters:
  baseLine -



setCalculateDependencies
public void setCalculateDependencies(boolean calculateDependencies)(Code)
If set to 'true' Hammurapi stores dependency information to the database.
Parameters:
  b -



setCleanup
public void setCleanup(boolean cleanup)(Code)
Cleanup old reviews info after review. Defaults to 'true'.
Parameters:
  cleanup -



setForceOnWaivers
public void setForceOnWaivers(boolean forceOnWaivers)(Code)
Force review of compilation units for which waivers are available. Default is true.



setHostId
public void setHostId(String hostId)(Code)
Host id to differentiate reports created on different machines.



setSkipIntactPackages
public void setSkipIntactPackages(boolean skipIntactPackages)(Code)
Do not generate summary pages for packages and summary if no files were changed in package/summary. Set it to 'true' to improve performance if you don not use 'New' marker on modified files.
Parameters:
  skipIntactPackages -



setStoreSource
public void setStoreSource(boolean storeSource)(Code)
If set to 'true' Hammurapi stores source code to the database.
Parameters:
  b -



Fields inherited from org.hammurapi.TaskBase
protected Path classPath(Code)(Java Doc)
protected File database(Code)(Java Doc)
protected boolean embeddedInspectors(Code)(Java Doc)
protected boolean evictBadInspectors(Code)(Java Doc)
protected boolean failOnFirstException(Code)(Java Doc)
protected boolean force(Code)(Java Doc)
protected boolean forceOnWarnings(Code)(Java Doc)
protected boolean hadExceptions(Code)(Java Doc)
protected List inspectors(Code)(Java Doc)
protected List listenerEntries(Code)(Java Doc)
protected List outputs(Code)(Java Doc)
protected String reviewDescription(Code)(Java Doc)
ObjectEntry revisionMapper(Code)(Java Doc)
protected List srcFileSets(Code)(Java Doc)
protected Collection srcFiles(Code)(Java Doc)
protected boolean suppressLogo(Code)(Java Doc)
protected int tabSize(Code)(Java Doc)
protected String title(Code)(Java Doc)
protected Collection violationFilters(Code)(Java Doc)
protected Collection waivers(Code)(Java Doc)

Methods inherited from org.hammurapi.TaskBase
public void addConfiguredListener(ListenerEntry listener)(Code)(Java Doc)
public void addConfiguredReviewAcceptor(ReviewAcceptorEntry reviewAcceptor) throws BuildException(Code)(Java Doc)
protected void configure(Options options, CommandLine line)(Code)(Java Doc)
public Path createClasspath()(Code)(Java Doc)
public XmlSourceEntry createConfig()(Code)(Java Doc)
public HistoryOutput createHistoryOutput()(Code)(Java Doc)
public InspectorEntry createInspector()(Code)(Java Doc)
public InspectorSourceEntry createInspectors()(Code)(Java Doc)
public Output createOutput()(Code)(Java Doc)
public ObjectEntry createRevisionMapper()(Code)(Java Doc)
public FileSet createSrc()(Code)(Java Doc)
public WaiverSourceEntry createWaivers()(Code)(Java Doc)
protected void deleteFile(File file)(Code)(Java Doc)
public String getDebugType()(Code)(Java Doc)
protected Integer getDpmoThreshold()(Code)(Java Doc)
protected String getEncoding()(Code)(Java Doc)
protected List getReviewAcceptorEntries()(Code)(Java Doc)
protected Integer getSeverityThreshold()(Code)(Java Doc)
protected Double getSigmaThreshold()(Code)(Java Doc)
protected boolean isFailOnWarnings()(Code)(Java Doc)
protected boolean isForce()(Code)(Java Doc)
protected boolean isForceOnWarnings()(Code)(Java Doc)
protected static void loadEmbeddedInspectors(InspectorSet inspectorSet) throws BuildException, HammurapiException(Code)(Java Doc)
protected static void populateOptions(Options options)(Code)(Java Doc)
protected static void printHelpAndExit(Options options)(Code)(Java Doc)
protected File processArchive()(Code)(Java Doc)
protected void processConfigs(File baseDir)(Code)(Java Doc)
public void setArchive(File archive)(Code)(Java Doc)
protected void setAttributes(Element config)(Code)(Java Doc)
public void setBaselining(String baselineMode)(Code)(Java Doc)
public void setClassPath(Path classPath)(Code)(Java Doc)
public void setDatabase(File database)(Code)(Java Doc)
public void setDebugType(String debugType)(Code)(Java Doc)
public void setDpmoThreshold(int dpmoThreshold) throws BuildException(Code)(Java Doc)
public void setEmbeddedInspectors(boolean embeddedInspectors)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public void setEvictBadInspectors(boolean evictBadInspectors)(Code)(Java Doc)
public void setFailOnFirstException(boolean failOnFirstException)(Code)(Java Doc)
public void setFailOnWarnings(boolean failOnWarnings)(Code)(Java Doc)
public void setForce(boolean force)(Code)(Java Doc)
public void setForceOnWarnings(boolean forceOnWarnings)(Code)(Java Doc)
protected void setHadExceptions()(Code)(Java Doc)
public void setReviewDescription(String reviewDescription)(Code)(Java Doc)
public void setSeverityThreshold(int severityThreshold)(Code)(Java Doc)
public void setSigmaThreshold(double sigmaThreshold) throws BuildException(Code)(Java Doc)
public void setTabSize(int tabSize)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setUnpackDir(File unpackDir)(Code)(Java Doc)
public void setWaiverStubs(File waiverStubs)(Code)(Java Doc)
protected void writeWaiverStubs(Collection rejectedViolations) throws RenderingException, FileNotFoundException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.