Class TemplateCompiler
java.lang.Object
fc.util.pagetemplate.TemplateCompiler
Used to compile generated pages by invoking the java compiler.
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateCompiler(File javafile) Creates a new page compiler that will use the default (system) classpath as seen by 'javac' when it is invoked from the command line.TemplateCompiler(File javafile, String classpath) Creates a new page compiler with the specified classpath. -
Method Summary
-
Constructor Details
-
TemplateCompiler
Creates a new page compiler that will use the default (system) classpath as seen by 'javac' when it is invoked from the command line. No seperate "encoding" flag will be specified to the javac. -
TemplateCompiler
Creates a new page compiler with the specified classpath. This is useful when the classpath must contain some directories within the servlet web application, just as WEB-INF/classes, WEB-INF/lib etc.- Parameters:
javafile- the source java file to compileclasspath- classpath to use when compiling
-
-
Method Details
-
getError
-
compile
- Throws:
IOException
-
main
-