public class Apt extends Javac
| Modifier and Type | Class and Description |
|---|---|
static class |
Apt.Option
The nested option element.
|
Javac.ImplementationSpecificArgument| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_IGNORING_COMPILER_OPTION
An warning message when ignoring compiler attribute.
|
static java.lang.String |
ERROR_WRONG_JAVA_VERSION
A warning message if used with java < 1.5.
|
static java.lang.String |
EXECUTABLE_NAME
The name of the apt tool.
|
static java.lang.String |
WARNING_IGNORING_FORK
exposed for debug messages
|
compileList, failOnError, listFilesfilesetdescription, location, project| Constructor and Description |
|---|
Apt()
Construtor for Apt task.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
createFactoryPath()
Add a path to the factoryPath attribute.
|
Apt.Option |
createOption()
Create a nested option.
|
void |
execute()
Do the compilation.
|
java.lang.String |
getAptExecutable()
Get the name of the apt executable.
|
java.lang.String |
getCompiler()
Get the compiler class name.
|
java.lang.String |
getFactory()
Get the factory option for the apt compiler.
|
Path |
getFactoryPath()
Get the factory path attribute.
|
java.util.Vector |
getOptions()
Get the options to the compiler.
|
java.io.File |
getPreprocessDir()
Get the preprocessdir attribute.
|
boolean |
isCompile()
Get the compile option for the apt compiler.
|
void |
setCompile(boolean compile)
Set the compile option for the apt compiler.
|
void |
setCompiler(java.lang.String compiler)
Set the compiler.
|
void |
setFactory(java.lang.String factory)
Set the factory option for the apt compiler.
|
void |
setFactoryPathRef(Reference ref)
Add a reference to a path to the factoryPath attribute.
|
void |
setFork(boolean fork)
Set the fork attribute.
|
void |
setPreprocessDir(java.io.File preprocessDir)
Set the preprocessdir attribute.
|
add, checkParameters, compile, createBootclasspath, createClasspath, createCompilerArg, createCompilerClasspath, createExtdirs, createSourcepath, createSrc, getBootclasspath, getClasspath, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTaskSuccess, getTempdir, getVerbose, isForkedJavac, isIncludeDestClasses, isJdkCompiler, recreateSrc, resetFileLists, scanDir, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCreateMissingPackageInfoClass, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setErrorProperty, setExecutable, setExtdirs, setFailonerror, setIncludeantruntime, setIncludeDestClasses, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setNowarn, setOptimize, setProceed, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, setUpdatedProperty, setVerboseadd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocationpublic static final java.lang.String EXECUTABLE_NAME
public static final java.lang.String ERROR_IGNORING_COMPILER_OPTION
public static final java.lang.String ERROR_WRONG_JAVA_VERSION
public static final java.lang.String WARNING_IGNORING_FORK
public Apt()
public java.lang.String getAptExecutable()
public void setCompiler(java.lang.String compiler)
setCompiler in class Javaccompiler - not used.public void setFork(boolean fork)
public java.lang.String getCompiler()
getCompiler in class JavacJavac.getCompilerVersion()public boolean isCompile()
public void setCompile(boolean compile)
compile - if true set the compile option.public java.lang.String getFactory()
public void setFactory(java.lang.String factory)
factory - the classname of the factory.public void setFactoryPathRef(Reference ref)
ref - a reference to a path.public Path createFactoryPath()
public Path getFactoryPath()
public Apt.Option createOption()
public java.util.Vector getOptions()
public java.io.File getPreprocessDir()
public void setPreprocessDir(java.io.File preprocessDir)
preprocessDir - where to place processor generated source files.public void execute()
throws BuildException
execute in class JavacBuildException - on error.