* 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

@ -119,7 +119,7 @@
<zipfileset src="${dir.lib}/jna.jar">
<include name="com/sun/jna/**" />
</zipfileset>
<zipfileset src="${dir.lib}/platform.jar">
<include name="com/sun/jna/platform/win32/**" />
</zipfileset>
@ -150,12 +150,12 @@
<zipfileset src="${dir.lib}/sevenzipjbinding.jar">
<include name="net/sf/sevenzipjbinding/**" />
</zipfileset>
<!-- Ivy for @Grapes automatic dependency management -->
<zipfileset src="${dir.lib}/scripting/ivy.jar">
<include name="org/apache/ivy/**" />
</zipfileset>
<!-- AntBuilder including dependencies for ant-javamail, ant-commons-net and ant-jsch -->
<zipfileset src="${dir.lib}/scripting/ant.jar">
<include name="org/apache/tools/**" />
@ -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.