org.apache.tools.ant.taskdefs
Class Tstamp
Sets properties to the current time, or offsets from the current time.
The default properties are TSTAMP, DSTAMP and TODAY;
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.
|
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
createFormat
public Tstamp.CustomFormat createFormat()
create a custom format with the current prefix.
- a ready to fill-in format
execute
public void execute()
throws BuildException
create the timestamps. Custom ones are done before
the standard ones, to get their retaliation in early.
- execute in interface Task
setPrefix
public void setPrefix(String prefix)
Set a prefix for the properties. If the prefix does not end with a "."
one is automatically added
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.