public class Tstamp extends Task
| 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.
|
description, location, project| 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.
|
protected java.util.Date |
getNow()
Return the
Date instance to use as base for DSTAMP, TSTAMP and TODAY. |
void |
setPrefix(java.lang.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, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setPrefix(java.lang.String prefix)
prefix - the prefix to use.public void execute()
throws BuildException
execute in class TaskBuildException - on error.public Tstamp.CustomFormat createFormat()
protected java.util.Date getNow()
Date instance to use as base for DSTAMP, TSTAMP and TODAY.