See: Description
| Class | Description |
|---|---|
| JRAntApiWriteTask |
Ant task for batch-generating the Java source file that uses the JR API to create the report design,
from compiled report template files or from source JRXML files.
|
| JRAntCompileTask |
Ant task for batch-compiling XML report design files.
|
| JRAntDecompileTask |
Ant task for batch-generating the source JRXML report design files, from compiled report template files.
|
| JRAntUpdateTask |
Ant task for batch-updating JRXML report design files.
|
| JRAntXmlExportTask |
Ant task for batch-exporting generated report files.
|
| JRBaseAntTask |
Base class for JasperReports built-in Ant task implementations.
|
| UpdaterElement |
Utility class that provides a
ReportUpdater
implementation |
JRBaseAntTask class.
JRAntCompileTask class. Its syntax and behavior are
very similar to the built-in <javac> Ant task.
build.xml
file:
<taskdef name="jrc"
classname="net.sf.jasperreports.ant.JRAntCompileTask">
<classpath>
<fileset dir="./lib">
<include name="** /*.jar"/>
</fileset>
</classpath>
</taskdef>
In the preceding example, the lib folder should contain the jasperreports-x.x.x.jar file
along with its other required libraries.
srcdir: Location of the JRXML report template files to be compiled. Required unless nested <src> elements are present.destdir: Location to store the compiled report template files (the same as the source directory by default).compiler: Name of the class that implements the JRCompiler interface to be used for compiling the reports (optional).xmlvalidation: Flag to indicate whether the XML validation should be performed on the source report template files (true by default).tempdir: Location to store the temporarily generated files (the current working directory by default).keepjava: Flag to indicate if the temporary Java files generated on the fly should be kept and not deleted automatically (false by default).<src> and <classpath>
elements, just like the Ant <javac> built-in task.
JRAntDecompileTask class and its declaration inside a
build.xml file should be as follows:
<taskdef name="jrdc" classname="net.sf.jasperreports.ant.JRAntDecompileTask"> <classpath refid="classpath"/> </taskdef>In the above example, the
classpath should contain the jasperreports-x.x.x.jar file along with its other required
libraries.
srcdir attribute for their root
folder or, for more sophisticated file match patterns, a nested <src> tag. The output
folder for the generated files is specified using the destdir attribute.
JRXmlLoader or JRLoader
and the JRXmlWriter.
JRAntUpdateTask class, which should have the
following definition in a build.xml file:
<taskdef name="jru" classname="net.sf.jasperreports.ant.JRAntUpdateTask"> <classpath refid="classpath"/> </taskdef>This task is useful also in situations where the same modification needs to be applied on a number of different report files. The required modifications can be performed using the JasperReport API after the report design object has been loaded but before it is saved again.
Copyright © 2017. All rights reserved.