* auto-fail build if we can't get svn revision

This commit is contained in:
Reinhard Pointner 2012-07-26 08:50:42 +00:00
parent 3f9c0ab67e
commit 22e75b95c0

View File

@ -462,7 +462,10 @@
<target name="svn-update">
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${dir.lib}/groovy.jar" />
<groovy>properties['svn.revision'] = 'svn update'.execute().text.replaceAll(/\D/, '')</groovy>
<groovy>
properties['svn.revision'] = 'svn update'.execute().text.replaceAll(/\D/, '')
</groovy>
<fail unless="svn.revision" />
<echo>Revision: ${svn.revision}</echo>
</target>