senpost
1/7/2013 - 7:10 PM

gistfile1.xml

 <target name="set-version-using-file">
	<!-- Load properties from "version.properties" file -->				
	<property file="version.properties" />
	
	<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>