Java Doc for JBlanketAppTask.java in  » Code-Analyzer » JBlanket » csdl » jblanket » ant » 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 » JBlanket » csdl.jblanket.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


csdl.jblanket.ant.JBlanketTask
   csdl.jblanket.ant.JBlanketAppTask

JBlanketAppTask
public class JBlanketAppTask extends JBlanketTask (Code)
Implements the JBlanket Apache Ant task definition that launches the application to exclude individual methods. The system covered is displayed as a tree, with methods as the leaves. The Font used to display each method is altered to reflect the category of the method, e.g., tested, untested, one-line, etc. Methods chosen to be excluded by the user within this application are stored in the directory specified by the jblanket.dir system property. If not set, the default directory is <user_home>/<user_account>/jblanket/.

Required nested element for the application task:

    None.

Optional nested element for the application task:

    'sysproperty' - describes additional system properties not set in the environment. If jblanket.dir is not set as an environment variable, include this nested element to set it. For example: see Ant

Required attribute for the application task:

    None.

Optional attributes for the application task:

    'enable' - describes if the application should be launched. Valid values include "true", "on", "yes" to launch the application or "false", "off", or "no" to not launch the application. For example: enable="true"

    'verbose' - describes if additional output should be sent to standard out. Valid values include "true", "on", "yes" for additional output or "false", "off", or "no" for no additional output.
    For example: verbose="false"

    'excludeonelinemethods' - describes if methods with one line of code were excluded from coverage. Values include "true", "on", "yes" to identify the one-line methods or "false", "off", or "no" to not identify them.
    For example: excludeonelinemethods="false"

    'excludeconstructors' - describes if constructors were excluded from coverage. Values include "true", "on", "yes" to identify constructors or "false", "off", or "no" to not identify them.
    For example: excludeconstructors="false"

    'onelinefile' - name of XML file containing all one-line methods
    For example: onelinefile="oneLineMethods.xml"

    'constructorfile' - name of XML file containing all cosntructors
    For example: constructorfile="constructorsMethods.xml"

    'excludedindividualfile' - name of XML file to contain/containing all individually excluded methods
    For example: excludedindividualfile="excludedIndividualMethods.xml"

If any of the optional attributes are not specified, their default values specified in the examples are used. For example, to distinguish methods with one line of source code from the coverage measurement, specify the 'excludeonelinemethods' attribute with a 'true' value. When not specified, one-line methods will not be distinguished in the application.

Use this class to execute JBlanket with Ant. One example of the 'jblanketapp' Ant target is:

 <taskdef name="jblanketapp" classname="csdl.jblanket.ant.JBlanketAppTask"/>
 <jblanketapp>
 <sysproperty key="jblanket.dir" value="$jblanket.dir" />
 </jblanketapp>
 
From the example, only tested and untested methods from the files found in jblanket.dir are distinguished. No additional output will be sent to standard out.

Another example is:

 <jblanketapp excludeonelinemethods="true"
 verbose="true" />
 
where one-line methods are distinguished, but constructors are not. Additional output will be sent to standard out.

Individually excluded methods are always identified. Only the file in which they are stored can be changed.

NOTE: For JBlanket to successfully launch the application, all related files MUST exist in jblanket.dir.
author:
   Joy M. Agustin
version:
   $Id: JBlanketAppTask.java,v 1.1 2004/11/07 00:32:33 timshadel Exp $




Constructor Summary
public  JBlanketAppTask()
     Constructs a new JBlanketAppTask object.

Method Summary
public  voidexecute()
     Executes the application for excluding individual methods Ant taskdef.


Constructor Detail
JBlanketAppTask
public JBlanketAppTask()(Code)
Constructs a new JBlanketAppTask object.




Method Detail
execute
public void execute()(Code)
Executes the application for excluding individual methods Ant taskdef.



Fields inherited from csdl.jblanket.ant.JBlanketTask
protected String constructorFile(Code)(Java Doc)
protected boolean enable(Code)(Java Doc)
protected boolean excludeConstructors(Code)(Java Doc)
protected boolean excludeIndividualMethods(Code)(Java Doc)
protected boolean excludeOneLineMethods(Code)(Java Doc)
protected String excludedIndividualFile(Code)(Java Doc)
protected String oneLineFile(Code)(Java Doc)
protected String totalFile(Code)(Java Doc)
protected boolean verbose(Code)(Java Doc)

Methods inherited from csdl.jblanket.ant.JBlanketTask
public void addConfiguredSysproperty(Environment.Variable systemProperty)(Code)(Java Doc)
public void setConstructorfile(String constructorFile)(Code)(Java Doc)
public void setEnable(String enable)(Code)(Java Doc)
public void setExcludeconstructors(String excludeConstructors)(Code)(Java Doc)
public void setExcludedindividualfile(String excludedIndividualFile)(Code)(Java Doc)
public void setExcludeindividualmethods(String excludeIndividualMethods)(Code)(Java Doc)
public void setExcludeonelinemethods(String excludeOneLineMethods)(Code)(Java Doc)
public void setFork(String value)(Code)(Java Doc)
public void setOnelinefile(String oneLineFile)(Code)(Java Doc)
public void setPrintsummary(String value)(Code)(Java Doc)
public void setTotalfile(String totalFile)(Code)(Java Doc)
public void setVerbose(String value)(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.