Java Doc for GenerateTestCases.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » tck » 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 » Scripting » groovy 1.0 » org.codehaus.groovy.tck 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.codehaus.groovy.tck.GenerateTestCases

GenerateTestCases
public class GenerateTestCases extends MatchingTask (Code)
Generates test files. This task can take the following arguments:
  • sourcedir
  • destdir
Both are required.

When this task executes, it will recursively scan the sourcedir looking for source files to expand into testcases. This task makes its generation decision based on timestamp. Based heavily on the Javac implementation in Ant
author:
   Jeremy Rayner
version:
   $Revision: 2599 $



Field Summary
protected  File[]compileList
    
protected  booleanfailOnError
    
protected  booleanlistFiles
    

Constructor Summary
public  GenerateTestCases()
    

Method Summary
protected  voidcheckParameters()
    
protected  voidcompile()
    
public  PathcreateClasspath()
     Adds a path to the classpath.
public  StringcreateEncoding()
    
public  PathcreateSourcepath()
     Adds a path to sourcepath.
public  PathcreateSrc()
     Adds a path for source compilation.
public  voidexecute()
     Executes the task.
public  PathgetClasspath()
     Gets the classpath to be used for this compilation.
public  FilegetDestdir()
     Gets the destination directory into which the java source files should be compiled.
public  StringgetEncoding()
    
public  booleangetFailonerror()
     Gets the failonerror flag.
public  File[]getFileList()
     Gets the list of files to be compiled.
public  booleangetListfiles()
     Get the listfiles flag.
public  PathgetSourcepath()
     Gets the sourcepath to be used for this compilation.
public  PathgetSrcdir()
     Gets the source dirs to find the source java files.
protected  PathrecreateSrc()
     Recreate src.
protected  voidresetFileLists()
     Clear the list of files to be compiled and copied..
protected  voidscanDir(File srcDir, File destDir, String[] files)
     Scans the directory looking for source files to be compiled.
public  voidsetClasspath(Path classpath)
     Set the classpath to be used for this compilation.
public  voidsetClasspathRef(Reference r)
     Adds a reference to a classpath defined elsewhere.
public  voidsetDestdir(File destDir)
     Set the destination directory into which the Java source files should be compiled.
public  voidsetEncoding(String encoding)
    
public  voidsetFailonerror(boolean fail)
     Indicates whether the build will continue even if there are compilation errors; defaults to true.
public  voidsetListfiles(boolean list)
     If true, list the source files being handed off to the compiler.
public  voidsetProceed(boolean proceed)
    
public  voidsetSourcepath(Path sourcepath)
     Set the sourcepath to be used for this compilation.
public  voidsetSourcepathRef(Reference r)
     Adds a reference to a source path defined elsewhere.
public  voidsetSrcdir(Path srcDir)
     Set the source directories to find the source Java files.
public  voidsetVerbose(boolean verbose)
    

Field Detail
compileList
protected File[] compileList(Code)



failOnError
protected boolean failOnError(Code)



listFiles
protected boolean listFiles(Code)




Constructor Detail
GenerateTestCases
public GenerateTestCases()(Code)




Method Detail
checkParameters
protected void checkParameters() throws BuildException(Code)



compile
protected void compile()(Code)



createClasspath
public Path createClasspath()(Code)
Adds a path to the classpath. a class path to be configured



createEncoding
public String createEncoding()(Code)



createSourcepath
public Path createSourcepath()(Code)
Adds a path to sourcepath. a sourcepath to be configured



createSrc
public Path createSrc()(Code)
Adds a path for source compilation. a nested src element.



execute
public void execute() throws BuildException(Code)
Executes the task.
exception:
  BuildException - if an error occurs



getClasspath
public Path getClasspath()(Code)
Gets the classpath to be used for this compilation. the class path



getDestdir
public File getDestdir()(Code)
Gets the destination directory into which the java source files should be compiled. the destination directory



getEncoding
public String getEncoding()(Code)



getFailonerror
public boolean getFailonerror()(Code)
Gets the failonerror flag. the failonerror flag



getFileList
public File[] getFileList()(Code)
Gets the list of files to be compiled. the list of files as an array



getListfiles
public boolean getListfiles()(Code)
Get the listfiles flag. the listfiles flag



getSourcepath
public Path getSourcepath()(Code)
Gets the sourcepath to be used for this compilation. the source path



getSrcdir
public Path getSrcdir()(Code)
Gets the source dirs to find the source java files. the source directorys as a path



recreateSrc
protected Path recreateSrc()(Code)
Recreate src. a nested src element.



resetFileLists
protected void resetFileLists()(Code)
Clear the list of files to be compiled and copied..



scanDir
protected void scanDir(File srcDir, File destDir, String[] files)(Code)
Scans the directory looking for source files to be compiled. The results are returned in the class variable compileList
Parameters:
  srcDir - The source directory
Parameters:
  destDir - The destination directory
Parameters:
  files - An array of filenames



setClasspath
public void setClasspath(Path classpath)(Code)
Set the classpath to be used for this compilation.
Parameters:
  classpath - an Ant Path object containing the compilation classpath.



setClasspathRef
public void setClasspathRef(Reference r)(Code)
Adds a reference to a classpath defined elsewhere.
Parameters:
  r - a reference to a classpath



setDestdir
public void setDestdir(File destDir)(Code)
Set the destination directory into which the Java source files should be compiled.
Parameters:
  destDir - the destination director



setEncoding
public void setEncoding(String encoding)(Code)



setFailonerror
public void setFailonerror(boolean fail)(Code)
Indicates whether the build will continue even if there are compilation errors; defaults to true.
Parameters:
  fail - if true halt the build on failure



setListfiles
public void setListfiles(boolean list)(Code)
If true, list the source files being handed off to the compiler.
Parameters:
  list - if true list the source files



setProceed
public void setProceed(boolean proceed)(Code)

Parameters:
  proceed - inverse of failoferror



setSourcepath
public void setSourcepath(Path sourcepath)(Code)
Set the sourcepath to be used for this compilation.
Parameters:
  sourcepath - the source path



setSourcepathRef
public void setSourcepathRef(Reference r)(Code)
Adds a reference to a source path defined elsewhere.
Parameters:
  r - a reference to a source path



setSrcdir
public void setSrcdir(Path srcDir)(Code)
Set the source directories to find the source Java files.
Parameters:
  srcDir - the source directories as a path



setVerbose
public void setVerbose(boolean verbose)(Code)
Enable verbose compiling which will display which files are being compiled
Parameters:
  verbose -



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