Created
December 6, 2010 19:38
-
-
Save xian/730793 to your computer and use it in GitHub Desktop.
Android: include build number and date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property environment="env"/> | |
<condition property="build.number" value="${env.BUILD_NUMBER}" else="unknown"> | |
<isset property="env.BUILD_NUMBER"/> | |
</condition> | |
<exec command="date" outputproperty="build.date"/> | |
<target name="update-buildinfo"> | |
<echo>updating build number and date to ${build.number} and ${build.date}</echo> | |
<echo file="res/values/buildinfo.xml" | |
><?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="build_number">${build.number}</string> | |
<string name="build_date">${build.date}</string> | |
</resources> | |
</echo> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment