You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mp...@apache.org on 2006/09/30 00:08:29 UTC
svn commit: r451471 - /incubator/openjpa/trunk/openjpa-lib/pom.xml
Author: mprudhom
Date: Fri Sep 29 15:08:28 2006
New Revision: 451471
URL: http://svn.apache.org/viewvc?view=rev&rev=451471
Log:
Changed revision checking system to spawn the "svnversion" command rather than directly parsiong the .svn/entries file. This gives a more accurate revision number, and it also deals with the new subversion format, which is no longer XML.
Modified:
incubator/openjpa/trunk/openjpa-lib/pom.xml
Modified: incubator/openjpa/trunk/openjpa-lib/pom.xml
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-lib/pom.xml?view=diff&rev=451471&r1=451470&r2=451471
==============================================================================
--- incubator/openjpa/trunk/openjpa-lib/pom.xml (original)
+++ incubator/openjpa/trunk/openjpa-lib/pom.xml Fri Sep 29 15:08:28 2006
@@ -91,10 +91,18 @@
<property name="outdir" value="${tmpdir}"/>
- <xmlproperty file="${basedir}/.svn/entries"
- collapseAttributes="true"/>
+ <property name="svnversion.executable"
+ value="svnversion"/>
+ <exec outputproperty="subversion.revision"
+ failonerror="false"
+ failifexecutionfails="false"
+ executable="${svnversion.executable}">
+ <arg line="-c ${basedir}/.."/>
+ </exec>
<property name="subversion.revision"
- value="${wc-entries.entry.revision}"/>
+ value="unknown"/>
+ <echo>Revision: ${subversion.revision}</echo>
+
<mkdir dir="${outdir}/META-INF"/>
<echo file="${outdir}/META-INF/revision.properties">revision.number=${subversion.revision}</echo>
<delete dir="${tmpdir}"/>