[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Automatically set keywords on new files

From: Cliff Meyers <cliff.meyers_at_gmail.com>
Date: 2005-11-30 22:06:26 CET

I'm trying to find a way to set the $Id$ keyword at the top of all new
files in my Eclipse project. I right-clicked on the project that's
hook up to SVN, selected "Team -> Add Keywords" and selected "Id" from
the list of checkboxes. This triggered a change to all my files, but
after doing a commit (and trying an update) I don't see anything being
written to the head of my files. Then I went in and added $Id$ to the
top of one of my files and after doing a commit saw that the correct
information was being written in. The problem is that when new files
get created they don't automatically get set up in the same way. Even
after adding $Id$ to the top of each new file I need to go back to the
project and select "Id" from the aforementioned list of checkboxes so
they get $Id$ replaced appropriately. Is there some way to tell my
Eclipse project to automatically add "// $Id$" to the top of each
file, or at least to all files of a certain extension? Thanks!!

Received on Thu Dec 1 08:06:26 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.