Modifier and Type | Class and Description |
---|---|
class |
Tstamp.CustomFormat
This nested element that allows a property to be set
to the current date and time in a given format.
|
static class |
Tstamp.Unit
set of valid units to use for time offsets.
|
Constructor and Description |
---|
Tstamp() |
Modifier and Type | Method and Description |
---|---|
Tstamp.CustomFormat |
createFormat()
create a custom format with the current prefix.
|
void |
execute()
create the timestamps.
|
void |
setPrefix(String prefix)
Set a prefix for the properties.
|
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, setProject
public Tstamp.CustomFormat createFormat()
public void execute() throws BuildException
execute
in class Task
BuildException
- on error.public void setPrefix(String prefix)
prefix
- the prefix to use.