in

Emerald Hand

Emerald Hand, Inc. community home page.

This Blog

  • Home
  • Contact
  • About
  • Directory of Computers/Tech Blogs

Syndication

News

I'm back to blogging

Worm in liquid maze

Design and development of information management tools.

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.

Share this post: Email it! | bookmark it! | digg it! | reddit!
Readability Stats: Word Count: 118; Sentence Count: 13; Grade Level: 2.1, more info...
Published Nov 20 2005, 06:10 PM by Ornus
Filed under:

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Ornus

Lead Sider and Xelog developer. I'm interested in information and how we can better manage it using computers. I'm also into design and understanding how to creating cool, useful, simple things.
Copyright © 2006-2007 EmeraldHand, Inc. All rights reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems