Class AntCompiler
java.lang.Object
org.apache.jasper.compiler.Compiler
org.apache.jasper.compiler.AntCompiler
Main JSP compiler class. This class uses Ant for compiling.
- Author:
- Anil K. Vijendran, Mandar Raje, Pierre Delisle, Kin-man Chung, Remy Maucherat, Mark Roth
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Objectprotected AntCompiler.JasperAntLoggerprotected org.apache.tools.ant.Project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateClass(Map<String, SmapStratum> smaps) Servlet compilation.protected org.apache.tools.ant.ProjectMethods inherited from class org.apache.jasper.compiler.Compiler
compile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getSmap, init, isOutDated, isOutDated, removeGeneratedClassFiles, removeGeneratedFiles
-
Field Details
-
javacLock
-
project
protected org.apache.tools.ant.Project project -
logger
-
-
Constructor Details
-
AntCompiler
public AntCompiler()
-
-
Method Details
-
getProject
protected org.apache.tools.ant.Project getProject() -
generateClass
protected void generateClass(Map<String, SmapStratum> smaps) throws FileNotFoundException, JasperException, ExceptionDescription copied from class:CompilerServlet compilation. This compiles the generated sources into Servlets.- Specified by:
generateClassin classCompiler- Parameters:
smaps- The source maps for the class(es) generated from the source file- Throws:
FileNotFoundException- Source files not foundJasperException- Compilation errorException- Some other error
-