<?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>Ant and SVN Integration Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/ant-and-svn-integration/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/ant-and-svn-integration/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:55:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>ANT Builds and Subversion (SVN) &#124; Ant integration with Subversion guide</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-builds-and-subversion-svn/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-builds-and-subversion-svn/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 06 Oct 2009 10:51:27 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[SVN(Subversion)]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Ant and SVN Integration]]></category>
		<category><![CDATA[ANT Builds]]></category>
		<category><![CDATA[Ant integration with Subversion]]></category>
		<category><![CDATA[Ant integration with Subversion Guide]]></category>
		<category><![CDATA[Ant integration with Subversion Tutorial]]></category>
		<category><![CDATA[ant svn export]]></category>
		<category><![CDATA[Build with ANT and SVN]]></category>
		<category><![CDATA[Builds]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Instruction]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Pocess]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[SVN Integration into ANT build]]></category>
		<category><![CDATA[SVN tasks on ANT]]></category>
		<category><![CDATA[SVNAnt]]></category>
		<category><![CDATA[svnant export command]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/10/06/ant-builds-and-subversion-svn/</guid>

					<description><![CDATA[<p>As I have mentioned in a previous blog entry, I have come to love using ANT in my development environment. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-builds-and-subversion-svn/">ANT Builds and Subversion (SVN) | Ant integration with Subversion guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4077 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-builds-and-subversion-s.png" alt="ant-builds-and-subversion" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-builds-and-subversion-s.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/10/ant-builds-and-subversion-s-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>As I have mentioned in a previous blog entry, I have come to love using ANT in my development environment. One of the things that I like about it is how well it integrates with my Subversion repository using SVNAnt. If you are not using either ANT or Subversion, you owe it to yourself and your team to check it out.</p>
<p>Here we&#8217;ll go over a simple build script that exports application files from the Subversion repository into a local folder in the CFEclipse project. You can then view the following entry on how to ftp that into your production/staging server.<br />
First we need to make sure that your ANT install has the necessary SVNAnt jar files. You can download them here: <a href="http://subclipse.tigris.org/svnant.html" target="_blank" rel="noopener">http://subclipse.tigris.org/svnant.html</a>. Once you unpack the svnant-1.0.0.zip file, you&#8217;ll find three jar files: svnant.jar, svnClientAdapter.jar, svnjavahl.jar. Place them on your<br />
[ANTInstall]/lib* folder.</p>
<p>Once you have the jar files in place, you can define them in your build file&#8217;s property section like so:<br />
&lt;!&#8211; svnant lib &#8211;&gt;<br />
&lt;property name=&#8221;svnant.lib&#8221; value=&#8221;lib&#8221; /&gt;<br />
&lt;property name=&#8221;svnant.jar&#8221; value=&#8221;${svnant.lib}/svnant.jar&#8221; /&gt;<br />
&lt;property name=&#8221;svnClientAdapter.jar&#8221; value=&#8221;${svnant.lib}/svnClientAdapter.jar&#8221; /&gt;<br />
&lt;property name=&#8221;svnjavahl.jar&#8221; value=&#8221;${svnant.lib}/svnjavahl.jar&#8221; /&gt;<br />
Followed by this path definition after all your properties have been defined:</p>
<p>&lt;!&#8211; path to the svnant libraries. Usually they will be located in ANT_HOME/lib &#8211;&gt;<br />
&lt;path id=&#8221;project.classpath&#8221;&gt;<br />
&lt;pathelement location=&#8221;${svnjavahl.jar}&#8221; /&gt;<br />
&lt;pathelement location=&#8221;${svnant.jar}&#8221; /&gt;<br />
&lt;pathelement location=&#8221;${svnClientAdapter.jar}&#8221; /&gt;<br />
&lt;/path&gt;</p>
<p>Now all you have left to do is add the following task definition:<br />
&lt;!&#8211; load the svn task &#8211;&gt;<br />
&lt;taskdef resource=&#8221;svntask.properties&#8221; classpathref=&#8221;project.classpath&#8221;/&gt;</p>
<p>Now you are all set! You can now call tasks like the following export target:</p>
<p>&lt;!&#8211; define properties &#8211;&gt;<br />
&lt;!&#8211; svn repo url &#8211;&gt;<br />
&lt;property name=&#8221;svn.url&#8221; value=&#8221;http://[mysvnhost]/svn/repo/myprojectFiles/&#8221; /&gt;<br />
&lt;property name=&#8221;svn.exportPath&#8221; value=&#8221;[yourDirectory]:\\[pathToYourCFEclipseProject\\build&#8221; /&gt;</p>
<p>&lt;target name=&#8221;svn.export&#8221;&gt;<br />
&lt;echo message=&#8221;Exporting application files from svn repository:&#8221; /&gt;<br />
&lt;input message=&#8221;Please enter svn repo username:&#8221; addproperty=&#8221;svn.username&#8221; /&gt;<br />
&lt;input message=&#8221;Please enter svn repo password:&#8221; addproperty=&#8221;svn.password&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${svn.destPath}&#8221; /&gt;<br />
&lt;svn username=&#8221;${svn.username}&#8221; password=&#8221;${svn.password}&#8221;&gt;<br />
&lt;export srcUrl=&#8221;${svn.url}&#8221; destPath=&#8221;${svn.exportPath}&#8221; revision=&#8221;HEAD&#8221; /&gt;<br />
&lt;/svn&gt;<br />
&lt;echo message=&#8221; &#8230; finished exporting files.&#8221; /&gt;<br />
&lt;/target&gt;</p>
<p>That&#8217;s it. No more running command line tasks to get your subversion commands. For additional info and other SVN tasks you can go to <a href="http://subclipse.tigris.org/svnant/svn.html" target="_blank" rel="noopener">http://subclipse.tigris.org/svnant/svn.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-builds-and-subversion-svn/">ANT Builds and Subversion (SVN) | Ant integration with Subversion guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-builds-and-subversion-svn/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
