大佬教程收集整理的这篇文章主要介绍了如何将bzr revid放入manifest的Android:versionName中,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
它适用于SVN,但它很容易调整为Bazaar ……
这是我的任务的样子.
<property environment="env"/> <target name="bzr-revision"> <echo>Modifying Android manifest with revision: ${env.bZR_REVISION}</echo> <!-- Write the revision number into the Manifest as the last segment of the VersionName property --> <replaceregexp file="AndroidManifest.xml" match='android:versionName="([^".]+\.[^".]+\.[^".]+)(\.[^"]*)?"' replace='android:versionName="\1.r${env.bZR_REVISION}"'/> </target>
如果versionName是1.5.2,则il将替换为1.5.2.r123(其中123是Bazaar修订号).您可以根据需要调整正则表达式.
以上是大佬教程为你收集整理的如何将bzr revid放入manifest的Android:versionName中全部内容,希望文章能够帮你解决如何将bzr revid放入manifest的Android:versionName中所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。