public class JRAntXmlExportTask extends JRBaseAntTask
javac Ant task.
This task can take the following arguments:
src and destdir are required.
When this task executes, it will recursively scan the src and
destdir looking for generated report files to export.
This task makes its export decision based on timestamp and only JRPRINT files
that have no corresponding file in the target directory or where the destination report
design file is older than the source file will be exported.jasperReportsContext| Constructor and Description |
|---|
JRAntXmlExportTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkParameters()
Checks that all required attributes have been set and that the supplied values are valid.
|
org.apache.tools.ant.types.Path |
createClasspath()
Adds a path to the classpath.
|
org.apache.tools.ant.types.Path |
createSrc()
Adds a path for export source.
|
void |
execute()
Executes the task.
|
protected void |
export()
Performs the export of the selected report files.
|
protected void |
scanDir(File srcdir,
File destdir,
String[] files)
Scans the directory looking for source files to be exported.
|
protected void |
scanSrc()
Scans the source directories looking for source files to be exported.
|
void |
setDestdir(File destdir)
Sets the destination directory into which the report files should be exported.
|
void |
setSrcdir(org.apache.tools.ant.types.Path srcdir)
Sets the source directories to find the XML report design files.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setSrcdir(org.apache.tools.ant.types.Path srcdir)
srcdir - source pathpublic org.apache.tools.ant.types.Path createSrc()
public void setDestdir(File destdir)
destdir - destination directorypublic org.apache.tools.ant.types.Path createClasspath()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void checkParameters()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionprotected void scanSrc()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionprotected void scanDir(File srcdir, File destdir, String[] files)
reportFilesMap.srcdir - source directorydestdir - destination directoryfiles - included file namesprotected void export()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionCopyright © 2017. All rights reserved.