On Monday, August 18, 2003, at 02:39 PM, Christian Haul wrote:


On 18.Aug.2003 -- 01:39 PM, Jeremy Quinn wrote:
Hi All,

I like the trick in the Cocoon source code whereby the CVS version,
date and committer username is embedded in the source files. I would
like to do the same with one of my repositories.

How does this get inserted into our files, and kept up to date? :

eg.

  * @version CVS $Id: InterpreterSelector.java,v 1.2 2003/03/16
17:49:11 vgritsenko Exp $

Is this done by hand, or through some CVS or Ant magic?

It's done by CVS. There are a number of magic tags enclosed with $$. The one above is $Id$ which will be expanded to the above.

See

http://www.cvshome.org/docs/manual/cvs-1.11.6/cvs_12.html

Many thanks Chris


regards Jeremy



Reply via email to