Hi,
I want to add "value"attribute to TstampTask.

Please let me know if there are any problem in this idea or better ideas  .

Thanks,

--usage--
ant -Dday=20051011 clean.logfile
...
[delete]/var/log/20050511/*.log


--dir--
/var/log/20050510/*.log
/var/log/20050511/*.log
/var/log/20050512/*.log
....

--idea--<not only current time, but also manual-input>
<target name="clean.logfile">
  <tstamp>
      <format property="logdate"
              pattern="yyyyMMdd"
              value="${day}"
              offset="-5"
              unit="month"/>
  </tstamp>
  <delete  dir="/var/log/${logdate}"/>
</target>

if value=="" or value not-defined then using current time.

--example scene--
executing as previous day(not today) during system recovery.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to