Package org.apache.jasper.compiler
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classprotected static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final Objectprotected AntCompiler.JasperAntLoggerprotected org.apache.tools.ant.Project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidgenerateClass(Map<String, SmapStratum> smaps) Compile the servlet from .java file to .class fileprotected org.apache.tools.ant.ProjectMethods inherited from class org.apache.jasper.compiler.Compilercompile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getSmap, init, isOutDated, isOutDated, removeGeneratedClassFiles, removeGeneratedFiles
- 
Field Details- 
javacLock
- 
projectprotected org.apache.tools.ant.Project project
- 
logger
 
- 
- 
Constructor Details- 
AntCompilerpublic AntCompiler()
 
- 
- 
Method Details- 
getProjectprotected org.apache.tools.ant.Project getProject()
- 
generateClassprotected void generateClass(Map<String, SmapStratum> smaps) throws FileNotFoundException, JasperException, ExceptionCompile the servlet from .java file to .class file- Specified by:
- generateClassin class- Compiler
- Parameters:
- smaps- The source maps for the class(es) generated from the source file
- Throws:
- FileNotFoundException- Source files not found
- JasperException- Compilation error
- Exception- Some other error
 
 
-