|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MatchingTask net.sf.jasperreports.ant.JRBaseAntTask net.sf.jasperreports.ant.JRAntDecompileTask
public class JRAntDecompileTask
Ant task for batch-generating the source JRXML report design files, from compiled report template files.
Works like the built-in 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 compiled report template files and it will recreate
the source JRXML file for each of them.
This task makes its file creation decision based on timestamp and only input files
that have no corresponding file in the target directory or where the destination JRXML file
is older than the input file will be processed.
Field Summary |
---|
Fields inherited from class net.sf.jasperreports.ant.JRBaseAntTask |
---|
jasperReportsContext |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
JRAntDecompileTask()
|
Method Summary | |
---|---|
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 decompilation source. |
protected void |
decompile()
Performs the decompilation of the selected report design files. |
void |
execute()
Executes the task. |
protected void |
scanDir(java.io.File srcdir,
java.io.File destdir,
java.lang.String[] files)
Scans the directory looking for source files to be decompiled. |
protected void |
scanSrc()
Scans the source directories looking for source files to be decompiled. |
void |
setDestdir(java.io.File destdir)
Sets the destination directory into which the report design files should be decompilated. |
void |
setSrcdir(org.apache.tools.ant.types.Path srcdir)
Sets the source directories to find the compiled report design files. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
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, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JRAntDecompileTask()
Method Detail |
---|
public void setSrcdir(org.apache.tools.ant.types.Path srcdir)
srcdir
- source pathpublic org.apache.tools.ant.types.Path createSrc()
public void setDestdir(java.io.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.Task
org.apache.tools.ant.BuildException
protected void checkParameters() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void scanSrc() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected void scanDir(java.io.File srcdir, java.io.File destdir, java.lang.String[] files)
reportFilesMap
.
srcdir
- source directorydestdir
- destination directoryfiles
- included file namesprotected void decompile() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |