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 Summary
Modifier and TypeClassDescriptionstatic class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Object
protected AntCompiler.JasperAntLogger
protected org.apache.tools.ant.Project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateClass
(String[] smap) Compile the servlet from .java file to .class fileprotected org.apache.tools.ant.Project
Methods inherited from class org.apache.jasper.compiler.Compiler
compile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getPageNodes, 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(String[] smap) throws FileNotFoundException, JasperException, Exception Compile the servlet from .java file to .class file- Specified by:
generateClass
in classCompiler
- Parameters:
smap
- The SMAP files for source debugging- Throws:
FileNotFoundException
- Source files not foundJasperException
- Compilation errorException
- Some other error
-