Class 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
    • Field Detail

      • javacLock

        protected static final java.lang.Object javacLock
      • project

        protected org.apache.tools.ant.Project project
    • Constructor Detail

      • AntCompiler

        public AntCompiler()
    • 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 class Compiler
        Parameters:
        smaps - The source maps for the class(es) generated from the source file
        Throws:
        java.io.FileNotFoundException - Source files not found
        JasperException - Compilation error
        java.lang.Exception - Some other error