public class CustomCompiler extends Compiler
Constructor and Description |
---|
CustomCompiler() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateClass(String[] smap)
Compile the servlet from .java file to .class file
|
boolean |
isOutDated()
This is a protected method intended to be overridden by subclasses of
Compiler.
|
boolean |
isOutDated(boolean checkClass)
Determine if a compilation is necessary by checking the time stamp of the
JSP page with that of the corresponding .class or .java file.
|
compile, compile, compile, generateJava, getCompilationContext, getErrorDispatcher, getPageInfo, getPageNodes, init, removeGeneratedClassFiles, removeGeneratedFiles
public boolean isOutDated()
Compiler
isOutDated
in class Compiler
public boolean isOutDated(boolean checkClass)
Compiler
isOutDated
in class Compiler
checkClass
- If true, check against .class file, if false, check against
.java file.protected void generateClass(String[] smap) throws FileNotFoundException, JasperException, Exception
Compiler
generateClass
in class Compiler
smap
- string arrayFileNotFoundException
- is file was not foundJasperException
- in case of jasper errorsException
- in case of other errorsCopyright © 2000–2020 Apache Software Foundation. All rights reserved.