catch trying to set the version without passing a version

This commit is contained in:
Jesse Vincent 2010-10-03 17:05:16 +00:00
parent bf9022403d
commit 8797e2228f
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@
</target>
<target name="set-version">
<echo>Setting version to ${version-name}</echo>
<fail unless="version-name">You can't set the version without passing -Dversion-name=1.234</fail>
<exec executable="perl" failonerror="true">
<arg line="-p -i.bak -e's/(?&lt;=android:versionName=&quot;)(.*?)(?=&quot;)/${version-name}/' AndroidManifest.xml"/>
</exec>