* fuck svnant, svnkit, and whatnot -> just use cmdline svn to get the revision number
This commit is contained in:
parent
14c4bc7c01
commit
6f68f0c00e
14
build.xml
14
build.xml
|
@ -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.
Loading…
Reference in New Issue