Another svn revision retrieving trick (place into ant build file):

                <exec executable="svn" output="svninfo.xml">
                        <arg line="info --xml"/>
                </exec>
                <xmlproperty file="svninfo.xml" collapseattributes="true"/>
                <property name="svn.revision" value="${info.entry.revision}"/>


On Jun 21, 10:26 am, joebowbeer <[email protected]> wrote:
> In an Ant build, you can use replaceregexp to modify the manifest:
>
>   <replaceregexp file="${build.manifest.file}"
>       match="android:versionName=\&quot;[^\&quot;]*\&quot;"
>       replace="android:versionName=\&quot;${svn.revision.max}\&quot;" /
>
>
>
> You can pass the svnversion in the Ant command line, or use SvnAnt to
> grab the revision within Ant.
>
> On Jun 19, 3:44 pm, Sebastian Müller <[email protected]> wrote:
>
> > Hi
>
> > Is there any possibility to set the result of the command svnversion into
> > the tag android:versionName of the Android manifest file??
>
> > Thanks
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to