public abstract class UUIDTask extends Task implements AnnotatedAntTask, ClasspathDelegateAntTask, ConfigurableAntTask, PropertySetterAntTask
Task
to generate new
unique UUID
s.
<UUIDTask classname="String" classpathref="Reference" description="String" property="String" taskname="String">
<classpath .../>
</UUIDTask>
UUIDTask.Generate
,
UUIDTask.GenerateRandom
,
UUIDTask.GenerateTime
Modifier and Type | Class and Description |
---|---|
static class |
UUIDTask.From
|
static class |
UUIDTask.Generate
|
static class |
UUIDTask.GenerateRandom
|
static class |
UUIDTask.GenerateTime
|
static class |
UUIDTask.Null
|
description, location, project
Constructor and Description |
---|
UUIDTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Default implementation for
Task subclasses. |
abstract UUID |
getPropertyValue()
Method to get the value to assign to the property.
|
void |
init()
Default implementation for
Task
subclasses. |
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
configure
getProperty, setProperty
public UUIDTask()
public void execute() throws BuildException
AnnotatedAntTask
Task
subclasses. Check attributes
annotated with AntTaskAttributeConstraint
.
See AnnotatedAntTaskConfigurationChecker
.execute
in interface AnnotatedAntTask
execute
in interface PropertySetterAntTask
execute
in class Task
BuildException
- If a
AntTaskAttributeConstraint.Checker
fails.public abstract UUID getPropertyValue() throws Exception
PropertySetterAntTask
getPropertyValue
in interface PropertySetterAntTask
Exception
- As specified by implementing subclass.public void init() throws BuildException
ClasspathDelegateAntTask
Task
subclasses.init
in interface ClasspathDelegateAntTask
init
in interface ConfigurableAntTask
init
in class Task
BuildException
Copyright © 2015–2020. All rights reserved.