public class PageCompiler extends java.lang.Object
Constructor and Description |
---|
PageCompiler(java.io.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.
|
PageCompiler(java.io.File javafile,
java.lang.String classpath,
java.lang.String encoding)
Creates a new page compiler with the specified classpath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compile() |
java.lang.String |
getError() |
static void |
main(java.lang.String[] args) |
public PageCompiler(java.io.File javafile)
public PageCompiler(java.io.File javafile, java.lang.String classpath, java.lang.String encoding)
javafile
- the source java file to compileclasspath
- classpath to use when compilingencoding
- the encoding of the java source file (example
ISO-8859-1, UTF-8 etc.). Used by the -encoding
flag passed to javac. Specify null
for no specific encoding.