* simplify build
This commit is contained in:
parent
3fea6a21de
commit
b3fbd7024a
|
@ -603,10 +603,10 @@
|
||||||
</target>
|
</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" />
|
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${dir.lib}/groovy.jar" />
|
||||||
<groovy>
|
<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>
|
</groovy>
|
||||||
<fail unless="svn.revision" />
|
<fail unless="svn.revision" />
|
||||||
<echo>Revision: ${svn.revision}</echo>
|
<echo>Revision: ${svn.revision}</echo>
|
||||||
|
|
Loading…
Reference in New Issue