| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapterorg.apache.tools.ant.taskdefs.compilers.AptCompilerAdapterpublic class AptCompilerAdapterextends 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.
Field Summary | |
static String |
|
static String |
|
Fields inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter | |
attributes, bootclasspath, compileClasspath, compileList, compileSourcepath, debug, depend, deprecation, destDir, encoding, extdirs, includeAntRuntime, includeJavaRuntime, lSep, location, memoryInitialSize, memoryMaximumSize, optimize, project, src, target, verbose | |
Method Summary | |
boolean |
|
protected Apt |
|
protected void |
|
Methods inherited from class org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter | |
addCurrentCompilerArgs, addExtdirsToClasspath, assumeJava11, assumeJava12, assumeJava13, assumeJava14, assumeJava15, assumeJava16, executeExternalCompile, executeExternalCompile, getBootClassPath, getCompileClasspath, getJavac, getNoDebugArgument, getProject, logAndAddFilesToCompile, setJavac, setupJavacCommand, setupJavacCommand, setupJavacCommandlineSwitches, setupJavacCommandlineSwitches, setupModernJavacCommand, setupModernJavacCommandlineSwitches | |
public static final String APT_ENTRY_POINT
class in tools.jar that implements APT
public static final String APT_METHOD_NAME
method used to compile.
public boolean execute()
throws BuildExceptionRun the compilation.
- Specified by:
- execute in interface CompilerAdapter
- Returns:
- true on success.
- Throws:
BuildException- if the compilation has problems.
protected Apt getApt()
Get the facade task that fronts this adapter
- Returns:
- task instance
- See Also:
DefaultCompilerAdapter.getJavac()
protected void setAptCommandlineSwitches(Commandline cmd)
using our front end task, set up the command line switches
- Parameters:
cmd- command line to set up