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 String |
ERROR_IGNORING_COMPILER_OPTION
An warning message when ignoring compiler attribute.
|
static String |
ERROR_WRONG_JAVA_VERSION
A warning message if used with java < 1.5.
|
static String |
EXECUTABLE_NAME
The name of the apt tool.
|
static String |
WARNING_IGNORING_FORK
exposed for debug messages
|
compileList, failOnError, listFiles
fileset
Constructor and Description |
---|
Apt()
Constructor 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.
|
String |
getAptExecutable()
Get the name of the apt executable.
|
String |
getCompiler()
Get the compiler class name.
|
String |
getFactory()
Get the factory option for the apt compiler.
|
Path |
getFactoryPath()
Get the factory path attribute.
|
Vector<Apt.Option> |
getOptions()
Get the options to the compiler.
|
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(String compiler)
Set the compiler.
|
void |
setFactory(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(File preprocessDir)
Set the preprocessdir attribute.
|
add, checkParameters, compile, createBootclasspath, createClasspath, createCompilerArg, createCompilerClasspath, createExtdirs, createModulepath, createModulesourcepath, createSourcepath, createSrc, createUpgrademodulepath, getBootclasspath, getClasspath, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getModulepath, getModulesourcepath, getNativeHeaderDir, getNowarn, getOptimize, getRelease, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTaskSuccess, getTempdir, getUpgrademodulepath, 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, setModulepath, setModulepathRef, setModulesourcepath, setModulesourcepathRef, setNativeHeaderDir, setNowarn, setOptimize, setProceed, setRelease, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, setUpdatedProperty, setUpgrademodulepath, setUpgrademodulepathRef, setVerbose
add, 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, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public static final String ERROR_IGNORING_COMPILER_OPTION
public static final String ERROR_WRONG_JAVA_VERSION
public static final String EXECUTABLE_NAME
public static final String WARNING_IGNORING_FORK
public Apt()
public Path createFactoryPath()
public Apt.Option createOption()
public void execute() throws BuildException
execute
in class Javac
BuildException
- on error.public String getAptExecutable()
public String getCompiler()
getCompiler
in class Javac
Javac.getCompilerVersion()
public String getFactory()
public Path getFactoryPath()
public Vector<Apt.Option> getOptions()
public File getPreprocessDir()
public boolean isCompile()
public void setCompile(boolean compile)
compile
- if true set the compile option.public void setCompiler(String compiler)
setCompiler
in class Javac
compiler
- not used.public void setFactory(String factory)
factory
- the classname of the factory.public void setFactoryPathRef(Reference ref)
ref
- a reference to a path.public void setFork(boolean fork)
public void setPreprocessDir(File preprocessDir)
preprocessDir
- where to place processor generated source files.