public class AptCompilerAdapter extends DefaultCompilerAdapter
public class Main {
public Main() ;
public static transient void main(String... strings) ;
public static transient int process(String... strings);
public static transient int process(PrintWriter printWriter,
String... strings) ;
public static transient int process(
AnnotationProcessorFactory annotationProcessorFactory,
String... strings) ;
public static transient int process(
AnnotationProcessorFactory annotationProcessorFactory,
PrintWriter printWriter,
String... strings);
private static transient int processing(
AnnotationProcessorFactory annotationProcessorFactory,
PrintWriter printWriter,
String... strings) ;
}
This Adapter is designed to run Apt in-JVM, an option that is not actually
exposed to end-users, because it was too brittle during beta testing; classpath
problems being the core issue.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APT_ENTRY_POINT
class in tools.jar that implements APT
|
static java.lang.String |
APT_METHOD_NAME
method used to compile.
|
attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, location, lSep, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose| Constructor and Description |
|---|
AptCompilerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Run the compilation.
|
protected Apt |
getApt()
Get the facade task that fronts this adapter
|
protected void |
setAptCommandlineSwitches(Commandline cmd)
using our front end task, set up the command line switches
|
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, assumeJava16, assumeJava17, assumeJava18, executeExternalCompile, executeExternalCompile, getBootClassPath, getCompileClasspath, getJavac, getNoDebugArgument, getProject, getSupportedFileExtensions, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitchespublic static final java.lang.String APT_ENTRY_POINT
public static final java.lang.String APT_METHOD_NAME
protected Apt getApt()
DefaultCompilerAdapter.getJavac()protected void setAptCommandlineSwitches(Commandline cmd)
cmd - command line to set uppublic boolean execute()
throws BuildException
BuildException - if the compilation has problems.