Java Doc for JRAntCompileTask.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » 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 » Report » jasperreports 2.0.1 » net.sf.jasperreports.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.jasperreports.ant.JRAntCompileTask

JRAntCompileTask
public class JRAntCompileTask extends MatchingTask (Code)
Ant task for batch-compiling XML report design files. Works like the built-in javac Ant task.

This task can take the following arguments:

  • src
  • destdir
  • compiler
  • classpath
  • tempdir
  • keepjava
  • xmlvalidation
Of these arguments, the src and destdir are required. When this task executes, it will recursively scan the src and destdir looking for XML report design files to compile. This task makes its compile decision based on timestamp and only XML files that have no corresponding .jasper file or where the compiled report design file is older than the XML file will be compiled.
author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JRAntCompileTask.java 1606 2007-02-28 08:21:12Z lucianc $




Method Summary
protected  voidcheckParameters()
     Checks that all required attributes have been set and that the supplied values are valid.
protected  voidcompile()
     Performs the compilation of the selected report design files.
public  PathcreateClasspath()
     Adds a path to the classpath.
public  PathcreateSrc()
     Adds a path for source compilation.
public  voidexecute()
     Executes the task.
protected  voidscanDir(File srcdir, File destdir, String[] files)
     Scans the directory looking for source files to be compiled.
protected  voidscanSrc()
     Scans the source directories looking for source files to be compiled.
public  voidsetCompiler(String compiler)
     Sets the name of the report compiler class to use when compiling the XML report design files.
public  voidsetDestdir(File destdir)
     Sets the destination directory into which the XML report design files should be compiled.
public  voidsetKeepjava(boolean keepjava)
     Sets a boolean flag that will instruct the Java bytecode report compilers to avoid deletion of the Java source files generated in the temporary working directory during report generation.
public  voidsetSrcdir(Path srcdir)
     Sets the source directories to find the XML report design files.
public  voidsetTempdir(File tempdir)
     Sets the temporary working directory into which to store the temporary files generated during XML report design file compilation.
public  voidsetXmlvalidation(boolean xmlvalidation)
     Instructs the XML parser to validate the XML report design file during compilation.



Method Detail
checkParameters
protected void checkParameters() throws BuildException(Code)
Checks that all required attributes have been set and that the supplied values are valid.



compile
protected void compile() throws BuildException(Code)
Performs the compilation of the selected report design files.



createClasspath
public Path createClasspath()(Code)
Adds a path to the classpath. classpath to use when compiling the report associated Java expressions class



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



execute
public void execute() throws BuildException(Code)
Executes the task.



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 instance variable reportFilesMap.
Parameters:
  srcdir - source directory
Parameters:
  destdir - destination directory
Parameters:
  files - included file names



scanSrc
protected void scanSrc() throws BuildException(Code)
Scans the source directories looking for source files to be compiled.



setCompiler
public void setCompiler(String compiler)(Code)
Sets the name of the report compiler class to use when compiling the XML report design files.

The specified class should be an implementation of the net.sf.jasperreports.engine.design.JRCompiler interface. When specified, this value will temporarily override the value of the jasper.reports.compiler.class system property which in turn is used by the net.sf.jasperreports.engine.design.JRDefaultCompiler .
Parameters:
  compiler - report compiler class name




setDestdir
public void setDestdir(File destdir)(Code)
Sets the destination directory into which the XML report design files should be compiled.
Parameters:
  destdir - destination directory



setKeepjava
public void setKeepjava(boolean keepjava)(Code)
Sets a boolean flag that will instruct the Java bytecode report compilers to avoid deletion of the Java source files generated in the temporary working directory during report generation. This is useful when debugging.
Parameters:
  keepjava - flag for preventing the deletion of generated Java source files



setSrcdir
public void setSrcdir(Path srcdir)(Code)
Sets the source directories to find the XML report design files.
Parameters:
  srcdir - source path



setTempdir
public void setTempdir(File tempdir)(Code)
Sets the temporary working directory into which to store the temporary files generated during XML report design file compilation. This is only used by the Java bytecode report compilers that need to have the Java source files stored on disk in order to compile them.

If not set, the temporary working directory will be the current working directory, as specified by the user.dir system property.
Parameters:
  tempdir - temporary working directory




setXmlvalidation
public void setXmlvalidation(boolean xmlvalidation)(Code)
Instructs the XML parser to validate the XML report design file during compilation.
Parameters:
  xmlvalidation - flag for enabling/disabling the validation feature of the XML parser



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