* fuck svnant, svnkit, and whatnot -> just use cmdline svn to get the revision number

This commit is contained in:
Reinhard Pointner 2012-07-20 15:47:16 +00:00
parent 14c4bc7c01
commit 6f68f0c00e
6 changed files with 5 additions and 15 deletions

View File

@ -461,18 +461,8 @@
<target name="svn-update">
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
<classpath>
<fileset dir="${dir.lib}/build" includes="*.jar" />
</classpath>
</typedef>
<svnSetting id="svn.settings" svnkit="true" javahl="false" />
<svn refid="svn.settings">
<update dir="${dir.source}" revision="HEAD" recurse="false" />
</svn>
<svn refid="svn.settings">
<status path="${dir.source}" revisionProperty="svn.revision" />
</svn>
<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>
<echo>Revision: ${svn.revision}</echo>
</target>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.