|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Tstamp
public class Tstamp
Sets properties to the current time, or offsets from the current time. The default properties are TSTAMP, DSTAMP and TODAY;
Nested Class Summary | |
---|---|
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. |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Tstamp()
|
Method Summary | |
---|---|
Tstamp.CustomFormat |
createFormat()
create a custom format with the current prefix. |
void |
execute()
create the timestamps. |
void |
setPrefix(java.lang.String prefix)
Set a prefix for the properties. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tstamp()
Method Detail |
---|
public void setPrefix(java.lang.String prefix)
prefix
- the prefix to use.public void execute() throws BuildException
execute
in class Task
BuildException
- on error.public Tstamp.CustomFormat createFormat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |