Cliff Meyers <cliff.meyers@gmail.com> wrote on 11/30/2005 04:06:26 PM:
> 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!!
All Subclipse does is set the svn:keywords property on the file so that
the keyword expansion will take place. It is up to you to put the
keywords in your file.
Couldn't you use the Eclipse template feature to have it inserted in new
files? I guess that might only apply to Java but the tools for other
languages tend to have similar features.
You should probably set an auto-prop in your Subversion config file so
that you do not have to remember to add the svn:keywords property to your
new files.
Mark
_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Thu Dec 1 08:22:15 2005