<?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>change BuildNumber Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/change-buildnumber/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/change-buildnumber/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:55:21 +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 use ant Script to Reset BuildNumber?</title>
		<link>https://www.scmgalaxy.com/tutorials/ant-script-to-reset-buildnumber/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ant-script-to-reset-buildnumber/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 20 Jun 2009 05:16:53 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[ant reset build number]]></category>
		<category><![CDATA[Ant Script]]></category>
		<category><![CDATA[ant Script to Reset BuildNumber]]></category>
		<category><![CDATA[Build number]]></category>
		<category><![CDATA[BuildNumber]]></category>
		<category><![CDATA[change BuildNumber]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Reset]]></category>
		<category><![CDATA[Reset BuildNumber]]></category>
		<category><![CDATA[Reset BuildNumber by ant Script]]></category>
		<category><![CDATA[resetting build numbers]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Use ant script to reset BuildNumber]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/06/20/ant-script-to-reset-buildnumber/</guid>

					<description><![CDATA[<p>To use this code, you need to have the file build.number containging: major.number=1 minor.number=0 hotfix.number=0 revision.number=0 continuous.number=0 Then the following 3 targets: [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-script-to-reset-buildnumber/">How to use ant Script to Reset BuildNumber?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><!-- [if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:TrackMoves/>   <w:TrackFormatting/>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:DoNotPromoteQF/>   <w:LidThemeOther>EN-US</w:LidThemeOther>   <w:LidThemeAsian>X-NONE</w:LidThemeAsian>   <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>    <w:SplitPgBreakAndParaMark/>    <w:DontVertAlignCellWithSp/>    <w:DontBreakConstrainedForcedTables/>    <w:DontVertAlignInTxbx/>    <w:Word11KerningPairs/>    <w:CachedColBalance/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>   <m:mathPr>    <m:mathFont m:val="Cambria Math"/>    <m:brkBin m:val="before"/>    <m:brkBinSub m:val="--"/>    <m:smallFrac m:val="off"/>    <m:dispDef/>    <m:lMargin m:val="0"/>    <m:rMargin m:val="0"/>    <m:defJc m:val="centerGroup"/>    <m:wrapIndent m:val="1440"/>    <m:intLim m:val="subSup"/>    <m:naryLim m:val="undOvr"/>   </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267">   <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/>   <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>   <w:LsdException Locked="false" Priority="39" Name="toc 1"/>   <w:LsdException Locked="false" Priority="39" Name="toc 2"/>   <w:LsdException Locked="false" Priority="39" Name="toc 3"/>   <w:LsdException Locked="false" Priority="39" Name="toc 4"/>   <w:LsdException Locked="false" Priority="39" Name="toc 5"/>   <w:LsdException Locked="false" Priority="39" Name="toc 6"/>   <w:LsdException Locked="false" Priority="39" Name="toc 7"/>   <w:LsdException Locked="false" Priority="39" Name="toc 8"/>   <w:LsdException Locked="false" Priority="39" Name="toc 9"/>   <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>   <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/>   <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>   <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>   <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/>   <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>   <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>   <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>   <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>   <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/>   <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>   <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>   <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>   <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>   <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>   <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>   <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>   <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>  </w:LatentStyles> </xml><![endif]--> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!-- [if gte mso 10]>



<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman","serif";} </style>

 <![endif]--></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4095 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-script-to-reset-buildnu.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-script-to-reset-buildnu.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/ant-script-to-reset-buildnu-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p class="MsoNormal">To use this code, you need to have the file build.number containging:</p>
<p class="MsoNormal">
<p class="MsoNormal">major.number=1</p>
<p class="MsoNormal">minor.number=0<br />
hotfix.number=0</p>
<p class="MsoNormal">revision.number=0<br />
continuous.number=0</p>
<p class="MsoNormal">
<p class="MsoNormal">Then the following 3 targets:</p>
<p class="MsoNormal">
<p class="MsoNormal">  &lt;taskdef resource=&#8221;net/sf/antcontrib/antlib.xml&#8221;/&gt;<br />
&lt;taskdef name=&#8221;unset&#8221; classname=&#8221;ise.antelope.tasks.Unset&#8221;/&gt;</p>
<p class="MsoNormal">    &lt;target name=&#8221;initBuildNum&#8221; description=&#8221;Get current build number properties&#8221;&gt;<br />
&lt;property file=&#8221;build.number&#8221;/&gt;<br />
&lt;var name=&#8221;next.major&#8221; value=&#8221;${major.number}&#8221;/&gt;<br />
&lt;var name=&#8221;next.minor&#8221; value=&#8221;${minor.number}&#8221;/&gt;<br />
&lt;var name=&#8221;next.hotfix&#8221; value=&#8221;${hotfix.number}&#8221;/&gt;<br />
&lt;var name=&#8221;next.revision&#8221; value=&#8221;${revision.number}&#8221;/&gt;<br />
&lt;var name=&#8221;next.continuous&#8221; value=&#8221;${continuous.number}&#8221;/&gt;<br />
&lt;/target&gt;</p>
<p class="MsoNormal">
<p class="MsoNormal">    &lt;target name=&#8221;getBuildNum&#8221;&gt;<br />
&lt;switch value=&#8221;${increment}&#8221;&gt;<br />
&lt;case value=&#8221;rebuild&#8221;/&gt;<br />
&lt;case value=&#8221;major&#8221;&gt;<br />
&lt;!&#8211;Increment major, minor to 1, hotfix to 0, revision to 1&#8211;&gt;<br />
&lt;math result=&#8221;next.major&#8221; operand1=&#8221;${next.major}&#8221; operation=&#8221;+&#8221; operand2=&#8221;1&#8243; datatype=&#8221;int&#8221;/&gt;<br />
&lt;var name=&#8221;next.minor&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;var name=&#8221;next.hotfix&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;var name=&#8221;next.revision&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;/case&gt;<br />
&lt;case value=&#8221;minor&#8221;&gt;<br />
&lt;!&#8211;Major stays the same, minor increments, hotfix goes to 0, revision to 1&#8211;&gt;<br />
&lt;math result=&#8221;next.minor&#8221; operand1=&#8221;${next.minor}&#8221; operation=&#8221;+&#8221; operand2=&#8221;1&#8243; datatype=&#8221;int&#8221;/&gt;<br />
&lt;var name=&#8221;next.hotfix&#8221; value=&#8221;0&#8243; /&gt;<br />
&lt;var name=&#8221;next.revision&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;/case&gt;<br />
&lt;case value=&#8221;hotfix&#8221;&gt;<br />
&lt;!&#8211;Major stays the same, minor stays the same, hotfix increments, revision goes to 1&#8211;&gt;<br />
&lt;math result=&#8221;next.hotfix&#8221; operand1=&#8221;${next.hotfix}&#8221; operation=&#8221;+&#8221; operand2=&#8221;1&#8243; datatype=&#8221;int&#8221;/&gt;<br />
&lt;var name=&#8221;next.revision&#8221; value=&#8221;1&#8243; /&gt;<br />
&lt;/case&gt;<br />
&lt;case value=&#8221;continuous&#8221;&gt;<br />
&lt;!&#8211;For continuous integration don&#8217;t change anything but 5th build digit&#8211;&gt;<br />
&lt;math result=&#8221;next.continuous&#8221; operand1=&#8221;${next.continuous}&#8221; operation=&#8221;+&#8221; operand2=&#8221;1&#8243; datatype=&#8221;int&#8221;/&gt;<br />
&lt;/case&gt;<br />
&lt;case value=&#8221;contReset&#8221;&gt;<br />
&lt;!&#8211;Continuous build, but they want the 5th digit reset (i.e. new week)&#8211;&gt;<br />
&lt;var name=&#8221;next.continuous&#8221; value=&#8221;1&#8243;/&gt;<br />
&lt;/case&gt;<br />
&lt;default&gt;<br />
&lt;!&#8211;Update revision number only, they didn&#8217;t ask for anything special&#8211;&gt;<br />
&lt;math result=&#8221;next.revision&#8221; operand1=&#8221;${next.revision}&#8221; operation=&#8221;+&#8221; operand2=&#8221;1&#8243; datatype=&#8221;int&#8221;/&gt;<br />
&lt;/default&gt;<br />
&lt;/switch&gt;<br />
&lt;/target&gt;</p>
<p class="MsoNormal">
<p class="MsoNormal">    &lt;target name=&#8221;setBuildNumber&#8221; depends=&#8221;initBuildNum,getBuildNum&#8221;&gt;<br />
&lt;!&#8211;First save the build number properties&#8211;&gt;<br />
&lt;propertyfile file=&#8221;build.number&#8221;&gt;<br />
&lt;entry key=&#8221;major.number&#8221; value=&#8221;${next.major}&#8221;/&gt;<br />
&lt;entry key=&#8221;minor.number&#8221; value=&#8221;${next.minor}&#8221;/&gt;<br />
&lt;entry key=&#8221;hotfix.number&#8221; value=&#8221;${next.hotfix}&#8221;/&gt;<br />
&lt;entry key=&#8221;revision.number&#8221; value=&#8221;${next.revision}&#8221;/&gt;<br />
&lt;entry key=&#8221;continuous.number&#8221; value=&#8221;${next.continuous}&#8221;/&gt;<br />
&lt;/propertyfile&gt;<br />
&lt;!&#8211;Unset the properties so that we can change their values&#8211;&gt;<br />
&lt;unset name=&#8221;major.number&#8221;/&gt;<br />
&lt;unset name=&#8221;minor.number&#8221;/&gt;<br />
&lt;unset name=&#8221;hotfix.number&#8221;/&gt;<br />
&lt;unset name=&#8221;revision.number&#8221;/&gt;<br />
&lt;unset name=&#8221;continuous.number&#8221;/&gt;<br />
&lt;property file=&#8221;build.number&#8221;/&gt;<br />
&lt;!&#8211;set the full.buildnumber property to be used by the build&#8211;&gt;<br />
&lt;if&gt;<br />
&lt;or&gt;<br />
&lt;equals arg1=&#8221;${increment}&#8221; arg2=&#8221;continuous&#8221;/&gt;<br />
&lt;equals arg1=&#8221;${increment}&#8221; arg2=&#8221;contReset&#8221;/&gt;<br />
&lt;/or&gt;<br />
&lt;then&gt;<br />
&lt;property name=&#8221;full.buildnumber&#8221; value=&#8221;${major.number}.${minor.number}.${hotfix.number}.${revision.number}.${continuous.number}&#8221;/&gt;<br />
&lt;/then&gt;<br />
&lt;else&gt;<br />
&lt;property name=&#8221;full.buildnumber&#8221; value=&#8221;${major.number}.${minor.number}.${hotfix.number}.${revision.number}&#8221;/&gt;<br />
&lt;/else&gt;<br />
&lt;/if&gt;<br />
&lt;echo&gt;${full.buildnumber}&lt;/echo&gt;<br />
&lt;/target&gt;</p>
<p class="MsoNormal">
<p class="MsoNormal">Add these three targets to your ant script.  Put a &#8220;depends&#8221; to &#8220;setBuildNumber&#8221; at invocation of your ant script.  Depending on what you want to do, you&#8217;ll set different vars on the way in as follows:</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Usage:</strong><br />
To build and increment revision number only:<br />
&gt;Ant<br />
To move to the next major build number:<br />
&gt;Ant -Dincrement=major<br />
To move to the next minor build number:<br />
&gt;Ant -Dincrement=minor<br />
To move to the next hotfix build number:<br />
&gt;Ant -Dincrement=hotfix</p>
<p class="MsoNormal">  To do a continuous integration build incrementing 5th digit:<br />
&gt;Ant -Dincrement=continuous<br />
To do a continuous integration build resetting 5th digit to 1:<br />
&gt;Ant -Dincrement=contReset</p>
<p class="MsoNormal">
<p class="MsoNormal">Note that if you don&#8217;t set the value of increment, the build number will only have 4 digits.  The var that holds the build number after this is called is ${full.buildnumber}.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ant-script-to-reset-buildnumber/">How to use ant Script to Reset BuildNumber?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ant-script-to-reset-buildnumber/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
