net.sf.jasperreports.ant
public class JRAntDecompileTask extends MatchingTask
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.Constructor and Description |
---|
JRAntDecompileTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkParameters()
Checks that all required attributes have been set and that the supplied values are valid.
|
Path |
createClasspath()
Adds a path to the classpath.
|
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(Path srcdir)
Sets the source directories to find the compiled report design files.
|
public void setSrcdir(Path srcdir)
srcdir
- source pathpublic Path createSrc()
public void setDestdir(java.io.File destdir)
destdir
- destination directorypublic Path createClasspath()
public void execute() throws BuildException
BuildException
protected void checkParameters() throws BuildException
BuildException
protected void scanSrc() throws BuildException
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 BuildException
BuildException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com