Bug 47423 - next to attribute granularity: offset
Summary: next to attribute granularity: offset
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.2
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on: 45089
  Show dependency tree
Reported: 2009-06-25 01:24 UTC by Mario Frasca
Modified: 2010-12-27 11:12 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Mario Frasca 2009-06-25 01:24:45 UTC
just sharing with the community, an extra attribute we find useful for the core task tstamp in org.apache.tools.ant.taskdefs.TStamp.java

one of the things we often have to do is to schedule a task that has to work with the output saved in files which are named as their timestamp with granularity 15 minutes.  e.g.: 20090625T101500

we want to name our files so that they are "close" to the input files and we decided to use the original timestamp, offset by one or more minutes.  e.g.: 20090625T101600 20090625T101700 etc.

for this we use the granularity attribute described in #45089 and a similar offset attribute, whose implementation is just as trivial.