senpost
1/7/2013 - 7:16 PM

gistfile1.xml

 <target name="set-version-using-commandline-args">
	<!-- Load properties from "version.properties" file -->		
	<replaceregexp file="AndroidManifest.xml" match="android:versionCode(.*)" 
		replace='android:versionCode="${Version.Code}"'/>
	<replaceregexp file="AndroidManifest.xml" match="android:versionName(.*)" 
		replace='android:versionName="${Version.Name}"'/>		
</target>