<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gorges Blog &#187; eclipse</title>
	<atom:link href="http://blog.GORGES.us/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.GORGES.us</link>
	<description>Web Sites that Grow Your Business - our blog</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:12:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to enable keywords in Eclipse and Subversion (SVN)</title>
		<link>http://blog.GORGES.us/2009/03/how-to-enable-keywords-in-eclipse-and-subversion-svn/</link>
		<comments>http://blog.GORGES.us/2009/03/how-to-enable-keywords-in-eclipse-and-subversion-svn/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 14:00:12 +0000</pubDate>
		<dc:creator>Matt Clark</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.GORGES.us/?p=28</guid>
		<description><![CDATA[I've used CVS (Concurrent Versions System) for years, and really like the keyword substitution feature.  It's not hard to grok - when a file is committed to CVS, it is first scanned for words that should be replaced...]]></description>
			<content:encoded><![CDATA[<div class="primary">I&#8217;ve used CVS (Concurrent Versions System) for years, and really like the keyword substitution feature.  It&#8217;s not hard to grok &#8211; when a file is committed to CVS, it is first scanned for words that should be replaced.  Specifically, if a text file contains the following:</div>
<div class="primary">
<pre class="brush: php;">
//  File name: $HeadURL$
//  Revision: $Revison$
//  Last modified: $Date$
//  Last modified by: $Author$
//
//  description of the following file...
</pre>
</div>
<div class="primary">
<p>Then after it is checked in with keyword substitution, it looks like this:</p>
<pre class="brush: php;">
//  File name: best-practices.php
//  Revision: 1.1
//  Last modified: 2009-02-26 22:27
//  Last modified by: mclark
//
//  description of the following file...
</pre>
<p>Even better, I usually just use the single line version of &#8220;$Id$&#8221; that puts all the important information into a single line.</p>
<pre class="brush: php;">
//  $Id: best-practices.php 1619 2009-02-26 22:27 mclark $
//
//  description of the following file...
</pre>
<p>However keyword substitution is not activated by default from within Eclipse and its SVN module titled Subclipse.  Eclipse is the best IDE (Integrated Development Environment) that I&#8217;ve ever used (but it won&#8217;t be explained here).  These are the steps to activate the svn-keyword-substitution feature in Eclipse:</p>
<ol>
<li>Install Subclipse into your Eclipse application (you&#8217;ve probably already done this if you&#8217;re reading this post!)</li>
<li>Right-mouse-click on your project folder, and choose Team =&gt; Set Property from the popup menu</li>
<li>Enter the property name:  <strong>svn:keywords</strong></li>
<li>Enter the text property:  <strong>Author Date Id Revision HeadURL</strong></li>
<li>Click the  <strong>Set property recursively</strong> checkbox</li>
<li>OK</li>
</ol>
<p>Now keywords are substituted when you commit a file in SVN, just like they were in CVS.  Also, you can shorten Revision to Rev and HeadURL to URL.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.GORGES.us/2009/03/how-to-enable-keywords-in-eclipse-and-subversion-svn/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
