@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(ball.util.ant.types.TypedAttributeType argument) |
void |
execute()
Default implementation for
Task subclasses. |
List<ball.util.ant.types.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
public InstanceOfTask()
public void addConfiguredArgument(ball.util.ant.types.TypedAttributeType argument)
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.public List<ball.util.ant.types.TypedAttributeType> getArgumentList()
public void setArgument(String string)
Copyright © 2015–2020. All rights reserved.