public class TemplateCompiler extends Object
Constructor and Description |
---|
TemplateCompiler(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compile() |
String |
getError() |
static void |
main(String[] args) |
public TemplateCompiler(File javafile)
public TemplateCompiler(File javafile, String classpath)
javafile
- the source java file to compileclasspath
- classpath to use when compilingpublic boolean compile() throws IOException
IOException