This task takes the given jsp files and compiles them into java
files. It is then up to the user to compile the java files into classes.
The task requires the srcdir and destdir attributes to be
set. This Task is a MatchingTask, so the files to be compiled can be
specified using includes/excludes attributes or nested include/exclude
elements. Optional attributes are verbose (set the verbosity level passed
to jasper), package (name of the destination package for generated java
classes and classpath (the classpath to use when running the jsp
compiler).
This task supports the nested elements classpath (A Path) and
classpathref (A Reference) which can be used in preference to the
attribute classpath, if the jsp compiler is not already in the ant
classpath.
deleteEmptyJavaFiles() delete any java output files that are empty
this is to get around a little defect in jasper: when it
fails, it leaves incomplete files around.
mapToJavaFile(JspMangler mangler, File srcFile, File srcDir, File dest) get a filename from our jsp file.
Parameters: mangler - the jsp filename managler. Parameters: srcFile - the source file. Parameters: srcDir - the source directory. Parameters: dest - the destination directory.
protected void
resetFileLists() Clear the list of files to be compiled and copied..
protected void
scanDir(File srcDir, File dest, JspMangler mangler, String[] files) Scans the directory looking for source files to be compiled.
public void
setClasspath(Path cp) Set the classpath to be used for this compilation.
get a filename from our jsp file.
Parameters: mangler - the jsp filename managler. Parameters: srcFile - the source file. Parameters: srcDir - the source directory. Parameters: dest - the destination directory. the filename.
Scans the directory looking for source files to be compiled.
The results are returned in the class variable compileList
Parameters: srcDir - the source directory. Parameters: dest - the destination directory. Parameters: mangler - the jsp filename mangler. Parameters: files - the file names to mangle.
The URI context of relative URI references in the JSP pages.
If it does not exist then it is derived from the location
of the file relative to the declared or derived value of uriroot.
Parameters: uribase - The new Uribase value
The root directory that uri files should be resolved
against. (Default is the directory jspc is invoked from)
Parameters: uriroot - The new Uribase value