You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@media.demon.co.uk> on 2003/08/18 14:39:51 UTC

[OT] CVS version strings

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?

Thanks for any help

regards Jeremy


Re: [OT] CVS version strings

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
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


Re: [OT] CVS version strings

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
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

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08