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


org.codehaus.groovy.ant.Groovy

Groovy
public class Groovy extends Task (Code)
Executes a series of Groovy statements.

Statements can either be read in from a text file using the src attribute or from between the enclosing groovy tags.





Method Summary
protected  voidaddClassPathes(GroovyClassLoader classLoader)
    
public  voidaddFileset(FileSet set)
     Adds a set of files (nested fileset attribute).
public  voidaddText(String txt)
     Set an inline command to execute.
public  PathcreateClasspath()
     Returns a new path element that can be configured. Gets called for instance by Ant when it encounters a nested element.
protected  voidexecGroovy(String txt, PrintStream out)
     Exec the statement.
public  voidexecute()
    
public  PathgetClasspath()
     Gets the classpath.
protected  voidprintResults(PrintStream out)
     print any results in the statement.
protected  voidrunStatements(Reader reader, PrintStream out)
    
public  voidsetAppend(boolean append)
     whether output should be appended to or overwrite an existing file.
public  voidsetClasspath(Path classpath)
     Sets the classpath for loading.
public  voidsetClasspathRef(Reference r)
     Set the classpath for loading using the classpath reference.
public  voidsetOutput(File output)
     Set the output file; optional, defaults to the Ant log.
public  voidsetSrc(File srcFile)
     Set the name of the file to be run.
public  voidsetStacktrace(boolean stacktrace)
     Enable compiler to report stack trace information if a problem occurs during compilation.



Method Detail
addClassPathes
protected void addClassPathes(GroovyClassLoader classLoader)(Code)
Adds the class pathes (if any)
Parameters:
  classLoader - the classloader to configure



addFileset
public void addFileset(FileSet set)(Code)
Adds a set of files (nested fileset attribute).



addText
public void addText(String txt)(Code)
Set an inline command to execute. NB: Properties are not expanded in this text.



createClasspath
public Path createClasspath()(Code)
Returns a new path element that can be configured. Gets called for instance by Ant when it encounters a nested element.



execGroovy
protected void execGroovy(String txt, PrintStream out)(Code)
Exec the statement.



execute
public void execute() throws BuildException(Code)
Load the file and then execute it



getClasspath
public Path getClasspath()(Code)
Gets the classpath. Returns a Path



printResults
protected void printResults(PrintStream out)(Code)
print any results in the statement.



runStatements
protected void runStatements(Reader reader, PrintStream out) throws IOException(Code)
read in lines and execute them



setAppend
public void setAppend(boolean append)(Code)
whether output should be appended to or overwrite an existing file. Defaults to false.
since:
   Ant 1.5



setClasspath
public void setClasspath(Path classpath)(Code)
Sets the classpath for loading.
Parameters:
  classpath - The classpath to set



setClasspathRef
public void setClasspathRef(Reference r)(Code)
Set the classpath for loading using the classpath reference.



setOutput
public void setOutput(File output)(Code)
Set the output file; optional, defaults to the Ant log.



setSrc
public void setSrc(File srcFile)(Code)
Set the name of the file to be run. The folder of the file is automatically added to the classpath. Required unless statements are enclosed in the build file



setStacktrace
public void setStacktrace(boolean stacktrace)(Code)
Enable compiler to report stack trace information if a problem occurs during compilation.
Parameters:
  stacktrace -



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