* simplify build

This commit is contained in:
Reinhard Pointner 2014-07-29 11:27:10 +00:00
parent 3fea6a21de
commit b3fbd7024a
1 changed files with 2 additions and 2 deletions

View File

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