<?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>SVNAnt Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/svnant/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/svnant/</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>How to Integrate Subversion Into Your Ant Build ? &#8211; Step by step guide</title>
		<link>https://www.scmgalaxy.com/tutorials/integrating-subversion-into-your-ant-build/</link>
					<comments>https://www.scmgalaxy.com/tutorials/integrating-subversion-into-your-ant-build/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 14 Apr 2010 07:45:35 +0000</pubDate>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Ant Build]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[How to integrate SVN in Ant build]]></category>
		<category><![CDATA[Implement Subversion into Ant build]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion and Ant Integration]]></category>
		<category><![CDATA[Subversion Integration]]></category>
		<category><![CDATA[Subversion Integration in Ant Build]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[SVN Integration in Ant Build Guide]]></category>
		<category><![CDATA[SVN Integration in Ant Build Instruction]]></category>
		<category><![CDATA[SVN Integration in Ant Build Tutorial]]></category>
		<category><![CDATA[SVNAnt]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/14/integrating-subversion-into-your-ant-build/</guid>

					<description><![CDATA[<p>SVNAnt SVNAnt is an Ant task allowing you to interact with Subversion within the convenience of your Ant build script. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/integrating-subversion-into-your-ant-build/">How to Integrate Subversion Into Your Ant Build ? &#8211; Step by step 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-4256" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/integrating-subversion-into.png" alt="svn-integration-in-ant-build " width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/integrating-subversion-into.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/integrating-subversion-into-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><b>SVNAnt<a class="mceItemAnchor" name="SVNAnt"></a></b><br />
SVNAnt is an Ant task allowing you to interact with Subversion within the convenience of your Ant build script. No more writing custom scripts to get the revision of your repository to tag your release jars. Nor do you have to make command line calls to checkout your latest and greatest as part of your continuous integration process. With SVNAnt, you have the familiarity of the Ant syntax and the flexibility you need for interacting with Subversion.<br />
<b>Features<a class="mceItemAnchor" name="Features"></a></b><br />
SVNAnt is a full-featured Subversion client capable of using the native Java bindings or command-line wrappering depending on which is available. Beyond how it works, SVNAnt allows you to do all <b>svn</b> subcommands but the following:</p>
<table class="mceItemTable" border="0" width="50%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>blame</td>
<td>cleanup</td>
<td>help</td>
<td>list</td>
</tr>
<tr>
<td>lock</td>
<td>log</td>
<td>merge</td>
<td>propedit</td>
</tr>
<tr>
<td>proplist</td>
<td>resolved</td>
<td>unlocked</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
<p>If the <b>svn</b> subcommand is not listed here, you can use it in your Ant build file. Before we continue start using SVNAnt, we have to install it and configure Ant to use it.<br />
<b>Installation<a class="mceItemAnchor" name="Installation"></a></b><br />
Now that we know what SVNAnt is and what its features are, lets install SVNAnt so that you can begin to use SVNAnt to access Subversion within your Ant build cycle.</p>
<p><b>Step 1. (Download, Compile and Extract)</b><br />
This step will download, compile, and &#8220;install&#8221; the latest version of SVNAnt.<br />
<b>1.1</b> Using Subversion, checkout the SVNAnt project located here: <a href="http://subclipse.tigris.org/svn/subclipse/trunk/svnant"><b>http://subclipse.tigris.org/svn/subclipse/trunk/svnant</b></a><br />
<b>1.2</b> From the command line, while inside of the location where you checked out SVNAnt to, run <b>&#8220;ant makeDistrib&#8221;</b><br />
<b>1.3</b> Extract the .zip file created in the <b>build</b> directory of your SVNAnt source to a location of your choosing</p>
<p><b>Step 2. (Modify your build.xml)</b><br />
The next step is to tell Ant how to find your SVNAnt task by adding the following to your build.xml file:<br />
&lt;path id= &#8220;svnant.classpath&#8221; &gt;<br />
&lt;fileset dir= &#8220;/PATH/TO/YOUR/EXTRACTED/SVNANT-ZIP&#8221; &gt;<br />
&lt;include name= &#8220;*.jar&#8221; /&gt;<br />
&lt;/fileset&gt;<br />
&lt;/path&gt;</p>
<p>&lt;typedef resource=&#8221;org/tigris/subversion/svnant/svnantlib.xml&#8221; classpathref=&#8221;svnant.classpath&#8221; /&gt;<br />
That should be it. I know that it appears to be too good to be true so lets verify this.</p>
<p><b>Step 3. (Verify installation)</b><br />
Building upon <b>Step 2</b>, lets create a new ant task that will use the <a href="http://subclipse.tigris.org/svn/subclipse/trunk/svnant/doc/svn.html#wcVersion">wcVersion</a> feature of SVNAnt to get some information about your repository from a local working copy:<br />
&lt;target name=&#8221;testSVNAnt&#8221;&gt;<br />
&lt;svn&gt;<br />
&lt;wcVersion path= &#8220;PATH/TO/YOUR/WORKINGCOPY&#8221; /&gt;<br />
&lt;/svn&gt;</p>
<p>&lt;echo message= &#8220;Subversion repository url: ${repository.url}&#8221; /&gt;<br />
&lt;/target&gt;<br />
<b>(Note: In the event that you need to pass credentials to Subversion, look </b><a href="http://subclipse.tigris.org/svn/subclipse/trunk/svnant/doc/svn.html"><b>here</b></a><b>.)</b><br />
The output should be something similar to this:<br />
$ ant testSVNAnt</p>
<p>Buildfile: build.xml</p>
<p>testSVNAnt:<br />
[svn] &lt;WcVersion&gt; started &#8230;<br />
[svn]  finished.<br />
[echo] Subversion repository url: http://svn.apache.org/repos/asf/incubator/openejb/trunk</p>
<p>BUILD SUCCESSFUL<br />
Total time: 43 seconds</p>
<p>Pat yourself on the back. You have successfully installed SVNAnt and you are ready to implement Subversion into your Ant build cycle. Instead of us going through each available feature for SVNAnt, please view the <a href="http://subclipse.tigris.org/svn/subclipse/trunk/svnant/doc/svn.html">SVNAnt Documentation</a>. Now lets talk about why you may want to use SVNAnt to allow for Subversion interaction inside of your Ant build cycle.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/integrating-subversion-into-your-ant-build/">How to Integrate Subversion Into Your Ant Build ? &#8211; Step by step guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/integrating-subversion-into-your-ant-build/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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 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>
