Package org.apache.jasper.compiler
Class AntCompiler
- java.lang.Object
-
- org.apache.jasper.compiler.Compiler
-
- org.apache.jasper.compiler.AntCompiler
-
public class AntCompiler extends Compiler
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 Classes Modifier and Type Class Description static class
AntCompiler.JasperAntLogger
protected static class
AntCompiler.SystemLogHandler
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Object
javacLock
protected AntCompiler.JasperAntLogger
logger
protected org.apache.tools.ant.Project
project
-
Constructor Summary
Constructors Constructor Description AntCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateClass(java.util.Map<java.lang.String,SmapStratum> smaps)
Compile the servlet from .java file to .class fileprotected org.apache.tools.ant.Project
getProject()
-
Methods inherited from class org.apache.jasper.compiler.Compiler
compile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getSmap, init, isOutDated, isOutDated, removeGeneratedClassFiles, removeGeneratedFiles
-
-
-
-
Field Detail
-
javacLock
protected static final java.lang.Object javacLock
-
project
protected org.apache.tools.ant.Project project
-
logger
protected AntCompiler.JasperAntLogger logger
-
-
Method Detail
-
getProject
protected org.apache.tools.ant.Project getProject()
-
generateClass
protected void generateClass(java.util.Map<java.lang.String,SmapStratum> smaps) throws java.io.FileNotFoundException, JasperException, java.lang.Exception
Compile the servlet from .java file to .class file- Specified by:
generateClass
in classCompiler
- Parameters:
smaps
- The source maps for the class(es) generated from the source file- Throws:
java.io.FileNotFoundException
- Source files not foundJasperException
- Compilation errorjava.lang.Exception
- Some other error
-
-