public class Compiler extends AbstractCompiler
ICompiler.bootClassPath, classFileCreator, classFileFinder, classPath, compileErrorHandler, debugLines, debugSource, debugVars, extensionDirectories, sourceCharset, sourceFinder, sourceVersion, targetVersion, warningHandlerCREATE_NEXT_TO_SOURCE_FILE, FIND_NEXT_TO_SOURCE_FILE, NO_DESTINATION_DIRECTORY| Constructor and Description |
|---|
Compiler() |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(Resource[] sourceResources) |
void |
setCompilerOptions(String[] compilerOptions)
Adds command line options that are passed unchecked to the
Compiler. |
void |
setVerbose(boolean verbose) |
compile, setBootClassPath, setCharacterEncoding, setClassFileCreator, setClassFileFinder, setClassFileFinder, setClassPath, setCompileErrorHandler, setDebugLines, setDebugSource, setDebugVars, setDestinationDirectory, setEncoding, setExtensionDirectories, setSourceCharset, setSourceFinder, setSourcePath, setSourceVersion, setTargetVersion, setWarningHandlerpublic void setVerbose(boolean verbose)
public void setCompilerOptions(String[] compilerOptions)
Compiler.
Notice: Don't use the '-g' options - these are controlled through AbstractCompiler.setDebugLines(boolean), AbstractCompiler.setDebugVars(boolean) and AbstractCompiler.setDebugSource(boolean).
compilerOptions - All command line options supported by the JDK JAVAC toolpublic void compile(Resource[] sourceResources) throws CompileException, IOException
CompileExceptionIOExceptionCopyright © 2021. All rights reserved.