Java Doc for TaskBase.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

All known Subclasses:   org.hammurapi.QuickHammurapiTask,  org.hammurapi.HammurapiTask,
TaskBase
public class TaskBase extends Task (Code)

author:
   Pavel Vlasov
version:
   $Revision: 1.9 $


Field Summary
protected  PathclassPath
     Classpath for loading classes.
protected  Filedatabase
    
protected  booleanembeddedInspectors
    
protected  booleanevictBadInspectors
    
protected  booleanfailOnFirstException
    
protected  booleanforce
    
protected  booleanforceOnWarnings
    
protected  booleanhadExceptions
    
protected  Listinspectors
    
protected  ListlistenerEntries
    
protected  Listoutputs
    
protected  StringreviewDescription
    
 ObjectEntryrevisionMapper
    
protected  ListsrcFileSets
    
protected  CollectionsrcFiles
    
protected  booleansuppressLogo
    
protected  inttabSize
    
protected  Stringtitle
    
protected  CollectionviolationFilters
    
protected  Collectionwaivers
    


Method Summary
public  voidaddConfiguredListener(ListenerEntry listener)
    
public  voidaddConfiguredReviewAcceptor(ReviewAcceptorEntry reviewAcceptor)
     Review acceptor.
protected  voidconfigure(Options options, CommandLine line)
    
public  PathcreateClasspath()
     Maybe creates a nested classpath element.
public  XmlSourceEntrycreateConfig()
     Configuration source.
public  HistoryOutputcreateHistoryOutput()
     Defines history output, which stores review summary into database.
public  InspectorEntrycreateInspector()
    
public  InspectorSourceEntrycreateInspectors()
    
public  OutputcreateOutput()
    
public  ObjectEntrycreateRevisionMapper()
     Revision mapper.
public  FileSetcreateSrc()
     Source files fileset.
public  WaiverSourceEntrycreateWaivers()
    
protected  voiddeleteFile(File file)
    
public  StringgetDebugType()
    
protected  IntegergetDpmoThreshold()
    
protected  StringgetEncoding()
    
protected  ListgetReviewAcceptorEntries()
    
protected  IntegergetSeverityThreshold()
    
protected  DoublegetSigmaThreshold()
    
protected  booleanisFailOnWarnings()
    
protected  booleanisForce()
    
protected  booleanisForceOnWarnings()
    
protected static  voidloadEmbeddedInspectors(InspectorSet inspectorSet)
    
protected static  voidpopulateOptions(Options options)
    
protected static  voidprintHelpAndExit(Options options)
    
protected  FileprocessArchive()
    
protected  voidprocessConfigs(File baseDir)
    
public  voidsetArchive(File archive)
     Hammurapi archive to process.
protected  voidsetAttributes(Element config)
    
public  voidsetBaselining(String baselineMode)
     Sets baselining mode.
public  voidsetClassPath(Path classPath)
    
public  voidsetDatabase(File database)
     If this parameter is set then Hypersonic standalone database will be used instead of temporary database.
public  voidsetDebugType(String debugType)
    
public  voidsetDpmoThreshold(int dpmoThreshold)
     Fail build if project DPMO is above the threshold.
public  voidsetEmbeddedInspectors(boolean embeddedInspectors)
     Load embedded inspectors.
public  voidsetEncoding(String encoding)
    
public  voidsetEvictBadInspectors(boolean evictBadInspectors)
    
public  voidsetFailOnFirstException(boolean failOnFirstException)
     Fail build as soon as there is an exception.
public  voidsetFailOnWarnings(boolean failOnWarnings)
     Fail build if there have been warnings.
public  voidsetForce(boolean force)
    
public  voidsetForceOnWarnings(boolean forceOnWarnings)
     Force review of files with warnings, even if the file is not changed.
protected  voidsetHadExceptions()
    
public  voidsetReviewDescription(String reviewDescription)
     Description of review, e.g.
public  voidsetSeverityThreshold(int severityThreshold)
     Fail build on violations with severity levels lower or equal to the threshold.
public  voidsetSigmaThreshold(double sigmaThreshold)
     Fail build if project Sigma is below the threshold.
public  voidsetTabSize(int tabSize)
     Tab size in source files.
public  voidsetTitle(String title)
    
public  voidsetUnpackDir(File unpackDir)
     If this attribute is set then HAR archive will be unpacked in the given directory instead of a temporary one.
public  voidsetWaiverStubs(File waiverStubs)
     File to output waiver stubs for rejected waiver requests to.
protected  voidwriteWaiverStubs(Collection rejectedViolations)
    

Field Detail
classPath
protected Path classPath(Code)
Classpath for loading classes.



database
protected File database(Code)



embeddedInspectors
protected boolean embeddedInspectors(Code)



evictBadInspectors
protected boolean evictBadInspectors(Code)



failOnFirstException
protected boolean failOnFirstException(Code)



force
protected boolean force(Code)



forceOnWarnings
protected boolean forceOnWarnings(Code)



hadExceptions
protected boolean hadExceptions(Code)



inspectors
protected List inspectors(Code)



listenerEntries
protected List listenerEntries(Code)



outputs
protected List outputs(Code)



reviewDescription
protected String reviewDescription(Code)



revisionMapper
ObjectEntry revisionMapper(Code)



srcFileSets
protected List srcFileSets(Code)



srcFiles
protected Collection srcFiles(Code)



suppressLogo
protected boolean suppressLogo(Code)



tabSize
protected int tabSize(Code)



title
protected String title(Code)



violationFilters
protected Collection violationFilters(Code)



waivers
protected Collection waivers(Code)





Method Detail
addConfiguredListener
public void addConfiguredListener(ListenerEntry listener)(Code)
Review listener



addConfiguredReviewAcceptor
public void addConfiguredReviewAcceptor(ReviewAcceptorEntry reviewAcceptor) throws BuildException(Code)
Review acceptor.



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

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



createClasspath
public Path createClasspath()(Code)
Maybe creates a nested classpath element.



createConfig
public XmlSourceEntry createConfig()(Code)
Configuration source. Task can be configured from multiple sources.



createHistoryOutput
public HistoryOutput createHistoryOutput()(Code)
Defines history output, which stores review summary into database.



createInspector
public InspectorEntry createInspector()(Code)
Defines inspector



createInspectors
public InspectorSourceEntry createInspectors()(Code)
Defines inspector source



createOutput
public Output createOutput()(Code)
Defines output



createRevisionMapper
public ObjectEntry createRevisionMapper()(Code)
Revision mapper. Must implement com.pavelvlasov.jsel.RevisionMapper interface.



createSrc
public FileSet createSrc()(Code)
Source files fileset.



createWaivers
public WaiverSourceEntry createWaivers()(Code)
Defines waivers source



deleteFile
protected void deleteFile(File file)(Code)



getDebugType
public String getDebugType()(Code)
Returns the debugType.



getDpmoThreshold
protected Integer getDpmoThreshold()(Code)
Returns the dpmoThreshold.



getEncoding
protected String getEncoding()(Code)



getReviewAcceptorEntries
protected List getReviewAcceptorEntries()(Code)
Returns the reviewAcceptorEntries.



getSeverityThreshold
protected Integer getSeverityThreshold()(Code)
Returns the severityThreshold.



getSigmaThreshold
protected Double getSigmaThreshold()(Code)
Returns the dpmoThreshold.



isFailOnWarnings
protected boolean isFailOnWarnings()(Code)
Returns the failOnWarnings.



isForce
protected boolean isForce()(Code)



isForceOnWarnings
protected boolean isForceOnWarnings()(Code)



loadEmbeddedInspectors
protected static void loadEmbeddedInspectors(InspectorSet inspectorSet) throws BuildException, HammurapiException(Code)



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

Parameters:
  options -



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



processArchive
protected File processArchive()(Code)



processConfigs
protected void processConfigs(File baseDir)(Code)



setArchive
public void setArchive(File archive)(Code)
Hammurapi archive to process.
Parameters:
  archive -



setAttributes
protected void setAttributes(Element config)(Code)

Parameters:
  config -
throws:
  ParseException -



setBaselining
public void setBaselining(String baselineMode)(Code)
Sets baselining mode. Possible values: off (default) - no baselining, on - do not report violations stored in the baseline table, set - all violations from current scan are saved to the baseline table. The idea is to filter out all violations in preexisting code and report only new violations. Not all violations can be filtered out, only thouse with signatures. Significant code modifications can surface some baselined violation.
Parameters:
  baselineMode -



setClassPath
public void setClassPath(Path classPath)(Code)



setDatabase
public void setDatabase(File database)(Code)
If this parameter is set then Hypersonic standalone database will be used instead of temporary database. You must set database name if you want to run incremental reviews.
Parameters:
  database -



setDebugType
public void setDebugType(String debugType)(Code)
Class name to debug



setDpmoThreshold
public void setDpmoThreshold(int dpmoThreshold) throws BuildException(Code)
Fail build if project DPMO is above the threshold.



setEmbeddedInspectors
public void setEmbeddedInspectors(boolean embeddedInspectors)(Code)
Load embedded inspectors. Defaults to true.



setEncoding
public void setEncoding(String encoding)(Code)
Files encoding
Parameters:
  encoding -



setEvictBadInspectors
public void setEvictBadInspectors(boolean evictBadInspectors)(Code)
Remove inspector from inspector set if it throws an exception during review
Parameters:
  evictBadInspectors -



setFailOnFirstException
public void setFailOnFirstException(boolean failOnFirstException)(Code)
Fail build as soon as there is an exception. Default is false.



setFailOnWarnings
public void setFailOnWarnings(boolean failOnWarnings)(Code)
Fail build if there have been warnings. Default is true.



setForce
public void setForce(boolean force)(Code)
Force review even if the file is not changed
Parameters:
  force -



setForceOnWarnings
public void setForceOnWarnings(boolean forceOnWarnings)(Code)
Force review of files with warnings, even if the file is not changed. Default is true



setHadExceptions
protected void setHadExceptions()(Code)



setReviewDescription
public void setReviewDescription(String reviewDescription)(Code)
Description of review, e.g. release number. Appears in history annotation.
Parameters:
  baseLine -



setSeverityThreshold
public void setSeverityThreshold(int severityThreshold)(Code)
Fail build on violations with severity levels lower or equal to the threshold.



setSigmaThreshold
public void setSigmaThreshold(double sigmaThreshold) throws BuildException(Code)
Fail build if project Sigma is below the threshold.



setTabSize
public void setTabSize(int tabSize)(Code)
Tab size in source files. Defaults to 8.
Parameters:
  tabSize - The tabSize to set.



setTitle
public void setTitle(String title)(Code)

Parameters:
  title -



setUnpackDir
public void setUnpackDir(File unpackDir)(Code)
If this attribute is set then HAR archive will be unpacked in the given directory instead of a temporary one.
Parameters:
  unpackDir -



setWaiverStubs
public void setWaiverStubs(File waiverStubs)(Code)
File to output waiver stubs for rejected waiver requests to. Selected waiver stubs can then be copied to waiver source. Simplifies waiver creation
Parameters:
  waiverStubs -



writeWaiverStubs
protected void writeWaiverStubs(Collection rejectedViolations) throws RenderingException, FileNotFoundException(Code)

Parameters:
  collection -
throws:
  FileNotFoundException -
throws:
  RenderingException -



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