public class ProcessClassesTask extends Task implements AnnotatedAntTask, ClasspathDelegateAntTask
Task
to bootstrap
Processor
s. Creates and invokes
ClassFileProcessor
s found on the class path.
<ProcessClassesTask basedir="File" classname="String" classpathref="Reference" description="String" destdir="File" srcdir="Path" taskname="String">
<classpath .../>
<src .../>
</ProcessClassesTask>
description, location, project
Constructor and Description |
---|
ProcessClassesTask() |
Modifier and Type | Method and Description |
---|---|
Path |
createSrc() |
void |
execute()
Default implementation for
Task subclasses. |
protected Set<Class<?>> |
getClassSet() |
protected File |
getJavaFile(Class<?> type) |
void |
init()
Default implementation for
Task
subclasses. |
void |
setSrcdir(Path srcdir) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAntTaskName
log, log, log, log, log, log, log, log, log, log, log
createClasspath, delegate, delegate, getClassForName, getClassLoader, setClassname, setClasspathref
public ProcessClassesTask()
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in class Task
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.protected Set<Class<?>> getClassSet() throws BuildException
BuildException
protected File getJavaFile(Class<?> type)
public void init() throws BuildException
ClasspathDelegateAntTask
Task
subclasses.init
in interface ClasspathDelegateAntTask
init
in class Task
BuildException
Copyright © 2015–2020. All rights reserved.