<?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>Spackos62-Java Blog &#187; svn</title>
	<atom:link href="http://java.randgestalten.de/index.php/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://java.randgestalten.de</link>
	<description>java related stuff</description>
	<lastBuildDate>Fri, 02 Oct 2009 02:08:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get the current SVN revision number in from Ant</title>
		<link>http://java.randgestalten.de/index.php/2009/05/get-the-current-svn-revision-number-in-from-ant/</link>
		<comments>http://java.randgestalten.de/index.php/2009/05/get-the-current-svn-revision-number-in-from-ant/#comments</comments>
		<pubDate>Thu, 14 May 2009 14:06:46 +0000</pubDate>
		<dc:creator>Thasso</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://java.randgestalten.de/?p=119</guid>
		<description><![CDATA[Another minor Problem I struggled with the last couple times I was updating one of my build scripts was resolving the current SVN revision number from within ant. Google points out a few solutions,  but most of them require optional SVN tasks or do an exec. Someone (sorry, I would put a link if [...]]]></description>
			<content:encoded><![CDATA[<p>Another minor Problem I struggled with the last couple times I was updating one of my build scripts was resolving the current SVN revision number from within ant. Google points out a few solutions,  but most of them require optional SVN tasks or do an exec. Someone (sorry, I would put a link if I could remember) came up with the simple solution of using the stored SVN information from the filesystem. So:</p>
<pre>
<code>    &lt;loadfile property="svn.revision" srcFile="./.svn/entries"&gt;
        &lt;filterchain&gt;
        &lt;headfilter lines="1" skip="3"/&gt;
        &lt;deletecharacters chars="\n"/&gt;
        &lt;/filterchain&gt;
   &lt;/loadfile&gt;</code>
</pre>
<p>loads the current revision number into a property called <code>svn.revision</code>. I use this with svn 1.4 and 1.5 repositories and it works just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://java.randgestalten.de/index.php/2009/05/get-the-current-svn-revision-number-in-from-ant/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
