nAnt time stamp, Part II

Not long ago I talked about nAnt time stamping. It was an interesting, but unnecessary exercise. If I would have been a smart and read the whole manual I would have discovered nAnt tstamp task. It's a task to generate time stamp by template.

The new code that uses this task to time stamp projects is much shorter:

<tstamp />
 <zip zipfile="${release.dir}\${project.name}.${tstamp.date}.zip">
  <fileset basedir="${working-release.dir}">
   <include name="**" />
  </fileset>
 </zip>

tstamp by default sets tstamp.date to yyyyMMdd. This is just what I needed and the code is much simpler.



Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: Slava
Posted on: 11/20/2005 at 3:10 PM
Categories: .NET
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Friday, November 21, 2008 6:40 AM