* fix ant revision task

This commit is contained in:
Reinhard Pointner 2012-12-01 15:57:10 +00:00
parent 9c39577f63
commit fea8c186b7
1 changed files with 2 additions and 2 deletions

View File

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