Shell for the jspc compiler. Handles all options associated with the
command line and creates compilation contexts which it then compiles
according to the specified options.
This version can process files from a _single_ webapp at once, i.e.
a single docbase can be specified.
It can be used as an Ant task using:
addExtension(String extension) Adds the given file extension to the
list of extensions handled as JSP files.
Parameters: extension - The extension to add, e.g.
setFailOnError(boolean b) Set the option that throws an exception in case of a compilation error.
public void
setGenStringAsCharArray(boolean genStringAsCharArray) Determines whether text strings are to be generated as char arrays,
which improves performance in some cases.
public void
setIeClassId(String ieClassId) Sets the class-id value to be sent to Internet Explorer when using
tags.
public void
setJavaEncoding(String encodingName) Sets the encoding to use for
java files.
Parameters: encodingName - The name, e.g.
public void
setJspFiles(String jspFiles) Parses comma-separated list of JSP files to be processed.
Initializes the classloader as/if needed for the given
compilation context.
Parameters: clctxt - The compilation context throws: IOException - If an error occurs
Find the WEB-INF dir by looking up in the directory tree.
This is used if no explicit docbase is set, but only files.
XXX Maybe we should require the docbase.
Resolves the relative or absolute pathname correctly
in both Ant and command-line situations. If Ant launched
us, we should use the basedir of the current project
to resolve relative paths.
See Bugzilla 35571.
Parameters: s - The file The file resolved
Set the option that throws an exception in case of a compilation error.
setGenStringAsCharArray
public void setGenStringAsCharArray(boolean genStringAsCharArray)(Code)
Determines whether text strings are to be generated as char arrays,
which improves performance in some cases.
Parameters: genStringAsCharArray - true if text strings are to be generated aschar arrays, false otherwise
Sets the verbosity level. The actual number doesn't
matter: if it's greater than zero, the verbose flag will
be true.
Parameters: level - Positive means verbose