* auto-fail build if we can't get svn revision
This commit is contained in:
parent
3f9c0ab67e
commit
22e75b95c0
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user