@AntTask(value="instance-of") public class InstanceOfTask extends TypeTask
Task
to get an instance of a specified Class
.
<instance-of argument="String" classname="String" classpathref="Reference" description="String" taskname="String" type="String">
<classpath .../>
<argument if="String" name="String" type="String" unless="String">... text ...</argument>
</instance-of>
Factory
TypeTask.BeanInfoFor, TypeTask.IsAssignableFrom, TypeTask.MembersOf, TypeTask.ResourcePathTo, TypeTask.SuperclassesOf
Modifier and Type | Field and Description |
---|---|
protected Object |
instance |
description, location, project
Constructor and Description |
---|
InstanceOfTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredArgument(TypedAttributeType argument) |
void |
execute()
Default implementation for
Task subclasses. |
List<TypedAttributeType> |
getArgumentList() |
void |
setArgument(String string) |
init, setClassname, setType
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, setClasspathref
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
public InstanceOfTask()
public void addConfiguredArgument(TypedAttributeType argument)
public List<TypedAttributeType> getArgumentList()
public void setArgument(String string)
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in class TypeTask
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.Copyright © 2015–2020 Allen D. Ball. All rights reserved.